add cache busting
Build and Push Container / build-and-push (push) Successful in 16s

This commit is contained in:
2026-05-28 16:01:42 -04:00
parent 6a30145171
commit 54746f4636
5 changed files with 65 additions and 9 deletions
+14
View File
@@ -17,6 +17,20 @@ server {
gzip_min_length 256;
gzip_vary on;
# Never cache index.html so the latest HTML is always served
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
try_files $uri =404;
}
# Cache hashed assets forever (filename contains content hash)
location ~* \.(css|js|jpeg|jpg|png|gif|ico|svg|woff2?)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}