Skip to content

Commit cabcfff

Browse files
Update cache settings (#565)
Remove config for unused directories and update comments. Handle firmware via the bundler.
1 parent 854d405 commit cabcfff

16 files changed

+23
-22
lines changed

deployment.cjs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,9 @@ module.exports = {
3030
CacheControl: "public, max-age=0, must-revalidate",
3131
},
3232
"**/assets/**": { CacheControl: "public, max-age=31536000, immutable" },
33-
// There's lots in public/ that we'd ideally use the bundler for to improve caching
34-
// TODO: this might no longer be true, or at least be an easy fix
35-
"css/**": {
36-
CacheControl: "public, max-age=0, must-revalidate",
37-
},
38-
"firmware/**": {
39-
CacheControl: "public, max-age=0, must-revalidate",
40-
},
33+
// Just the favicon, other images via bundler/assets
4134
"imgs/**": {
4235
CacheControl: "public, max-age=0, must-revalidate",
4336
},
44-
"sounds/**": {
45-
CacheControl: "public, max-age=0, must-revalidate",
46-
},
47-
"webfonts/**": {
48-
CacheControl: "public, max-age=0, must-revalidate",
49-
},
5037
},
5138
};
File renamed without changes.

public/firmware/dev/README.md renamed to src/device/firmware/dev/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ These are firmware files used for debugging and development. These are not inten
55
Be warned that these may not always be up-to-date feature wise, and may need to be updated when new features are added to the hex files.
66

77
#### Outdated firmware
8-
To test the outdated firmware warning, we have outdated firmware versions. These should be the same as the currently available hex, but with wrong/no version numbers announced.
8+
9+
To test the outdated firmware warning, we have outdated firmware versions. These should be the same as the currently available hex, but with wrong/no version numbers announced.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)