Merge pull request 'docs(changelog): static revalidation is a breaking change (CARD-15, D12)' (#153) from docs/changelog-1c-breaking into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 20s
CI / build (push) Successful in 29s
CI / runtimes (edge) (push) Successful in 19s
Promote → GitHub / push-github (push) Successful in 6s
CI / runtimes (deno) (push) Successful in 33s

This commit was merged in pull request #153.
This commit is contained in:
chrnx committed 2026-10-24 19:13:23 +00:00
commit 1611ec0bfe
1 file changed
+7 -6
+7 -6
View File
@@ -99,6 +99,13 @@ npm treats versions as semver and semver forbids leading zeros.
`app.upgrade` already did. An app with no `@Ws`/`@Stream` routes and no mesh attaches no upgrade `app.upgrade` already did. An app with no `@Ws`/`@Stream` routes and no mesh attaches no upgrade
listener on Node, as before, so there the request still reaches the HTTP route table. listener on Node, as before, so there the request still reaches the HTTP route table.
- **Static files are revalidated, not re-downloaded** (#114, D12). Every static hit carries a weak
`ETag` (`W/"<size>-<mtime>"`), `Last-Modified` and `Cache-Control: no-cache`. A matching
`If-None-Match`, or `If-Modified-Since` when there is no `If-None-Match`, answers `304` from the
file's `stat` without reading it. A `HEAD` no longer reads the file either. `no-cache` stops
browsers from reusing a file for a lifetime they guessed from `Last-Modified`. To keep the old
behaviour, set `static: { cacheControl }` to whatever your proxy expects.
### Added ### Added
- **Health probes: `createApp({ health: true })`** (#115). Off by default. `GET`/`HEAD /__live__` - **Health probes: `createApp({ health: true })`** (#115). Off by default. `GET`/`HEAD /__live__`
@@ -177,12 +184,6 @@ npm treats versions as semver and semver forbids leading zeros.
### Changed ### Changed
- **Static files are revalidated, not re-downloaded** (#114, D12). Every static hit carries a weak
`ETag` (`W/"<size>-<mtime>"`), `Last-Modified` and `Cache-Control: no-cache`. A matching
`If-None-Match`, or `If-Modified-Since` when there is no `If-None-Match`, answers `304` from the
file's `stat` without reading it. A `HEAD` no longer reads the file either. `no-cache` stops
browsers from reusing a file for a lifetime they guessed from `Last-Modified`. To keep the old
behaviour, set `static: { cacheControl }` to whatever your proxy expects.
- **Every `304` is bodiless** (#114). A `304` has no body and no `content-*` headers on any adapter, - **Every `304` is bodiless** (#114). A `304` has no body and no `content-*` headers on any adapter,
including one from `throw new NotModified()`, which used to go out with the default JSON including one from `throw new NotModified()`, which used to go out with the default JSON
envelope's `content-type`. envelope's `content-type`.