From b87d5f0687570961ca6f8758d62afd3db81017eb Mon Sep 17 00:00:00 2001 From: Alexey Bannov Date: Thu, 2 Feb 2023 22:20:55 +0300 Subject: [PATCH] nginx: fixed cache_control header --- config/nginx/onlyoffice.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/nginx/onlyoffice.conf b/config/nginx/onlyoffice.conf index 2b8edb1256..52d1725e51 100644 --- a/config/nginx/onlyoffice.conf +++ b/config/nginx/onlyoffice.conf @@ -24,10 +24,9 @@ map $request_uri $header_x_frame_options { map $request_uri $cache_control { default "no-cache, no-store, no-transform"; - ~*\/(filehandler\.ashx\?action=thumb.*) "must-revalidate, no-transform, immutable, max-age=31536000"; + ~*\/(filehandler\.ashx\?action=thumb)|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, no-transform, immutable, max-age=31536000"; ~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts.*) "no-cache, no-store, no-transform"; - ~*\/(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000"; - ~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, no-transform, immutable, max-age=31536000"; + ~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000"; } include /etc/nginx/includes/onlyoffice-*.conf;