Commit f6bd2d6
authored
fix(server): stop sending immutable cache-control on /__webjs/core/* (#38)
The /__webjs/core/* paths are un-versioned: every bump of
@webjskit/core ships different bytes at the same URL. Sending
`cache-control: public, max-age=31536000, immutable` instructed
edge CDNs (Cloudflare in our case) to pin the prior bytes for up
to a year, which silently broke the next deploy: browsers loaded
the old client renderer against a server emitting the new SSR
shape, and any new exports (e.g. slot.js entry points added for
core 0.6.0) resolved to undefined in the cached file.
ETag + ~1h max-age is the right policy until URLs carry a version
hash. Drop immutable.
Bumps @webjskit/server to 0.7.1.
Regression: 2026-05-20, ui.webjs.dev tier-2 components after
@webjskit/core 0.5.0 -> 0.6.0 republish.1 parent 06211ff commit f6bd2d6
3 files changed
Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
392 | 404 | | |
393 | 405 | | |
394 | 406 | | |
395 | 407 | | |
396 | | - | |
| 408 | + | |
397 | 409 | | |
398 | 410 | | |
399 | 411 | | |
| |||
0 commit comments