Prevent stale web game packages after deploy

This commit is contained in:
hz
2026-07-19 00:14:35 -05:00
parent 4854509f71
commit 027587445c
+8
View File
@@ -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;