From 93e5af7402edb9fb9662e37d9b2b8c48d250c36e Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 7 Jan 2026 14:18:32 +0100 Subject: [PATCH] feat: Add caching headers for env.js in Nginx configuration --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index 40b9650..ff4e939 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,6 +8,13 @@ server { try_files $uri $uri/ /index.html; } + location /env.js { + root /usr/share/nginx/html; + default_type application/javascript; + expires -1; + add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; + } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html;