8000 Fix cache-control for html files. (#687) · nsavas2000/python-editor-v3@6c77117 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 6c77117

Browse files
Fix cache-control for html files. (microbit-foundation#687)
Closes microbit-foundation#686
1 parent 10e49a8 commit 6c77117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deployment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ module.exports = {
1616
errorDocumentKey: "index.html",
1717
redirects: [],
1818
params: {
19+
"**/**.html": {
20+
CacheControl: "public, max-age=0, must-revalidate",
21+
},
1922
"static/**": { CacheControl: "public, max-age=31536000, immutable" },
2023
"**/**/!(sw).js": { CacheControl: "public, max-age=31536000, immutable" },
2124
"**/**.css": { CacheControl: "public, max-age=31536000, immutable" },

0 commit comments

Comments
 (0)
0