Fix web redirects and loader rendering

This commit is contained in:
hz
2026-07-20 16:29:24 -05:00
parent 121e80b2ea
commit d142da2f78
9 changed files with 56 additions and 33 deletions
+7 -1
View File
@@ -49,12 +49,18 @@ server {
# 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)|ranaze-loader-icon\.png|medmind-inter\.ttf)$ {
location ~ ^/(index\.(js|pck|wasm)|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 = /ranaze-loader-icon-v1.png {
add_header Cache-Control "public, max-age=31536000, immutable" 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;