From 786736fadd968fc59a77ad57fd13de96146d8a4a Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Sun, 18 Jan 2026 10:07:44 +0100 Subject: [PATCH] :sparkles: Improve default nginx config (#8104) --- docker/images/files/nginx.conf.template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/images/files/nginx.conf.template b/docker/images/files/nginx.conf.template index 55a7f829bc..02dddc82b6 100644 --- a/docker/images/files/nginx.conf.template +++ b/docker/images/files/nginx.conf.template @@ -144,7 +144,7 @@ http { location / { include /etc/nginx/overrides/location.d/*.conf; - location ~* \.(js|css|jpg|png|svg|ttf|woff|woff2|wasm)$ { + location ~* \.(js|css|wasm|jpg|png|map|svg|ttf|woff|woff2|)$ { add_header Cache-Control "public, max-age=604800" always; # 7 days } @@ -152,8 +152,10 @@ http { return 301 " /404"; } + add_header X-Frame-Options SAMEORIGIN always; add_header Cache-Control "no-store, no-cache, max-age=0" always; try_files $uri /index.html$is_args$args /index.html =404; + } } }