Spaces:
Running
Running
fix(nginx): disable Cache-Control for index.html to force latest client bundle load and fix persistent TDZ crashes
031ee75 Download nginx.conf from DanilDrotik/FlowWeb: direct link, hf CLI and curl.
- Browser
- Download file 741 Bytes
-
https://huggingface.co/spaces/DanilDrotik/FlowWeb/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/DanilDrotik/FlowWeb/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/DanilDrotik/FlowWeb/resolve/main/nginx.conf
741 Bytes
| 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; | |
| } | |
| } | |