Fix Bug 53063 (#397)
This commit is contained in:
parent
552744ca82
commit
86abb2812f
@ -23,8 +23,9 @@ 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";
|
||||
default "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";
|
||||
~*\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|md|css|js)$ "public, no-transform";
|
||||
}
|
||||
|
||||
include /etc/nginx/includes/onlyoffice-*.conf;
|
||||
@ -145,7 +146,6 @@ server {
|
||||
}
|
||||
|
||||
location /api/2.0 {
|
||||
add_header Cache-Control $cache_control;
|
||||
location ~* /(files|encryption|privacyroom) {
|
||||
proxy_pass http://localhost:5007;
|
||||
proxy_set_header X-REWRITER-URL $X_REWRITER_URL;
|
||||
|
Loading…
Reference in New Issue
Block a user