Modify nginx cache control
This commit is contained in:
parent
ca0996ce3f
commit
214350c43f
@ -25,9 +25,9 @@ map $request_uri $header_x_frame_options {
|
||||
map $request_uri $cache_control {
|
||||
default "no-cache, no-store, must-revalidate";
|
||||
~*\/(api\/2\.0.*|storage|login\.ashx|products\/.+\/httphandlers\/filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts.*) "no-cache, no-store, must-revalidate";
|
||||
~*\/(locales.*\.json) "must-revalidate, immutable, no-transform, max-age=86400";
|
||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2)|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, immutable, no-transform, max-age=31536000";
|
||||
~*\.(ogg|ogv|svg|svgz|eot|otf|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)$ "must-revalidate, immutable, no-transform, max-age=0";
|
||||
~*\/(locales.*\.json) "must-revalidate, immutable, no-transform, max-age=28800";
|
||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, immutable, no-transform, max-age=31536000";
|
||||
~*\.(ogg|ogv|svg|svgz|eot|otf|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)$ "must-revalidate, immutable, no-transform, max-age=0, s-maxage=86400";
|
||||
}
|
||||
|
||||
include /etc/nginx/includes/onlyoffice-*.conf;
|
||||
|
Loading…
Reference in New Issue
Block a user