Spaces:
Running
Running
fix(nginx): disable Cache-Control for index.html to force latest client bundle load and fix persistent TDZ crashes
031ee75 | server { | |
| listen 7860; | |
| server_name localhost; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| try_files $uri $uri/ /index.html; | |
| # Disable caching for index.html to ensure users always receive the latest deployment | |
| add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; | |
| } | |
| # Cache hashed assets (JS, CSS, images, etc.) indefinitely for extreme speed | |
| location /assets/ { | |
| root /usr/share/nginx/html; | |
| expires 1y; | |
| add_header Cache-Control "public, max-age=31536000, immutable"; | |
| } | |
| error_page 500 502 503 504 /50x.html; | |
| location = /50x.html { | |
| root /usr/share/nginx/html; | |
| } | |
| } | |