We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfa3230 commit a760352Copy full SHA for a760352
netlify.toml
@@ -75,4 +75,23 @@
75
[[headers]]
76
for = "/fonts/*"
77
[headers.values]
78
- Cache-Control = "public, max-age=31536000, immutable"
+ Cache-Control = "public, max-age=31536000, immutable"
79
+
80
+# Prevent stale HTML from referencing old chunk filenames
81
+[[headers]]
82
+ for = "/index.html"
83
+ [headers.values]
84
+ Cache-Control = "no-cache, no-store, must-revalidate"
85
+ Pragma = "no-cache"
86
+ Expires = "0"
87
88
89
+ for = "/*.html"
90
91
+ Cache-Control = "no-cache"
92
93
+# Ensure service worker is always fresh if enabled later
94
95
+ for = "/sw.js"
96
97
0 commit comments