diff --git a/install/docker/config/nginx/onlyoffice-proxy.conf b/install/docker/config/nginx/onlyoffice-proxy.conf index 29199fcddb..f909487aa0 100644 --- a/install/docker/config/nginx/onlyoffice-proxy.conf +++ b/install/docker/config/nginx/onlyoffice-proxy.conf @@ -9,14 +9,6 @@ proxy_hide_header 'X-Powered-By'; proxy_cache_path /var/cache/openresty levels=1:2 keys_zone=cache_proxy:10m max_size=1g inactive=24h use_temp_path=off; -map $upstream_http_cache_control $cache_condition { - ~*max-age=0|~*s-maxage=0 1; - ~*private|~*no-store 0; - ~*max-age=(\d+)|~*s-maxage=(\d+) 0; - ~*immutable 0; - default 1; -} - server { listen 0.0.0.0:80; listen [::]:80 default_server; @@ -28,7 +20,6 @@ server { proxy_cache cache_proxy; proxy_cache_revalidate on; - proxy_no_cache $cache_condition; proxy_cache_valid 200 206 301 120m; proxy_cache_valid 302 303 20m; proxy_cache_valid 404 410 3m;