From 496d37795bbd8bc773c2a99a914d195ac872d9d8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 3 Dec 2025 13:45:18 +0100 Subject: [PATCH] :sparkles: Adapt docker images nginx config template to latest changes (#7891) --- docker/images/files/nginx.conf.template | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docker/images/files/nginx.conf.template b/docker/images/files/nginx.conf.template index 8b2d84556d..152193e332 100644 --- a/docker/images/files/nginx.conf.template +++ b/docker/images/files/nginx.conf.template @@ -142,13 +142,6 @@ http { location / { include /etc/nginx/overrides/location.d/*.conf; - location ~ ^/js/config.js$ { - add_header Cache-Control "no-store, no-cache, max-age=0" always; - } - - location ~* \.(js|css|jpg|svg|png|mjs|map)$ { - add_header Cache-Control "max-age=604800" always; # 7 days - } location ~ ^/(/|css|fonts|images|js|wasm|mjs|map) { } @@ -157,9 +150,7 @@ http { return 301 " /404"; } - add_header Last-Modified $date_gmt; - add_header Cache-Control "no-store, no-cache, max-age=0" always; - if_modified_since off; + add_header Cache-Control "public, must-revalidate, max-age=0"; try_files $uri /index.html$is_args$args /index.html =404; } }