Commit a6cc83c
site: never let browsers serve stale HTML
HTML shipped with stale-while-revalidate=3600, so after a deploy a
visitor's browser could keep showing hour-old copies of pages they
had already opened while fresh pages loaded the new design — two
site versions in one session. All HTML responses are now no-cache
(assets keep long-lived content-hash caching), and the site test
asserts the header on every page.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 3c57f29 commit a6cc83c
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments