diff --git a/web/nginx.conf b/web/nginx.conf index 0ca6ce4..4fb2983 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -41,6 +41,14 @@ server { try_files $uri =404; } + # Godot exports reuse these filenames across releases. Revalidate them so a + # newly deployed index never boots an older cached project package. + location ~ ^/(index\.(js|pck|wasm)|medmind-loader-icon\.png|medmind-inter\.ttf)$ { + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + add_header X-Content-Type-Options "nosniff" always; + try_files $uri =404; + } + location / { add_header Cache-Control "public, max-age=3600" always; add_header X-Content-Type-Options "nosniff" always;