We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52980ae commit 8ca0539Copy full SHA for 8ca0539
1 file changed
apps/website/nginx.conf
@@ -17,14 +17,19 @@ server {
17
add_header Cache-Control "public, immutable";
18
}
19
20
- # HTML files - cache but revalidate
+ # HTML files - always revalidate to pick up new asset hashes
21
location ~* \.html$ {
22
- expires 1h;
23
- add_header Cache-Control "public, must-revalidate";
+ add_header Cache-Control "no-cache";
+ }
24
+
25
+ # JSON data files (like latest.json) - revalidate frequently
26
+ location ~* \.json$ {
27
+ add_header Cache-Control "public, max-age=60";
28
29
30
# SPA fallback - serve index.html for all routes
31
location / {
32
33
try_files $uri $uri/ /index.html;
34
35
0 commit comments