diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 3ea3adf..91d62b4 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -36,9 +36,16 @@ server { add_header Cache-Control "public, max-age=31536000, immutable"; } + # HTML files - no cache to ensure fresh asset references + location ~* \.(html)$ { + try_files $uri =404; + add_header Cache-Control "no-cache, no-store, must-revalidate"; + } + # Frontend SPA routing location / { try_files $uri $uri/ /index.html; + add_header Cache-Control "no-cache, no-store, must-revalidate"; } # Security headers