Commit a137ccd
committed
fix: set Cache-Control: no-cache on SPA index.html
Railway's Fastly edge and Cloudflare both cache responses using the
default max-age=14400 (4h) when no Cache-Control header is set. This
caused stale index.html to be served after deploys, referencing old
content-hashed assets that no longer exist → blank page until cache
expires or manual purge.
Set no-cache on index.html so CDNs always revalidate. Hashed assets
in /dashboard/assets/ are still cacheable (immutable filenames).1 parent 6f5322b commit a137ccd
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
507 | 513 | | |
508 | 514 | | |
509 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments