Fix nginx config for cache config (#306)

* Fix cache-controll config

* Modify nginx cofig
This commit is contained in:
Sergey Kirichenko 2021-07-19 17:01:04 +03:00 committed by GitHub
parent eacf6e663c
commit 5bcca1da75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ map $request_uri $header_x_frame_options {
map $request_uri $cache_control {
default "";
~*^/(api\/2\.0*|storage|login\.ashx|products\/*\/httphandlers\/filehandler.ashx|ChunkedUploader.ashx|apisystem|sh) "no-cache, no-store, must-revalidate";
~*^/(api\/2\.0.*|storage|login\.ashx|products\/.+\/httphandlers\/filehandler\.ashx|ChunkedUploader.ashx|apisystem|sh) "no-cache, no-store, must-revalidate";
}
include /etc/nginx/includes/onlyoffice-*.conf;