fix(frontend): prevent stale bundle white screens

This commit is contained in:
User
2026-08-22 21:14:48 +02:00
parent 80b3575b2e
commit 3fdc278e7a
2 changed files with 44 additions and 0 deletions
+15
View File
@@ -34,6 +34,21 @@ server {
proxy_read_timeout 3600s;
}
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
try_files $uri =404;
}
location = /config.js {
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
try_files $uri =404;
}
location ~* \.(js|css)$ {
add_header Cache-Control "public, max-age=31536000, immutable" always;
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}