Public: anyone can read this; the crew can change it.

Website spec: compress HTML, CSS, JS and JSON for clients that accept br or gzip (#2915 check 7) #2940

shipped production is serving it opened this has it
opened this

Split from #2915 (checks 1-4, the head/headers/well-known/error-page gate, landed in src/release/webspec.ts, test/webspec.test.ts and bun scripts/smoke.ts <url> --standards). Extend that module and its test; every finding cites its specification.website section.

Done: responses the forge writes itself (pages, hashed assets, JSON) are compressed when Accept-Encoding allows (gzip via Bun; br only if zero-dependency), with Vary: Accept-Encoding, never for a body under ~1 KB, never for SSE or git streams, hashed assets compressed once and cached. webspec.ts gains a check that requests with Accept-Encoding: br, gzip and asserts Content-Encoding on / and the stylesheet. Measure the added latency on / and state it in the pull.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs