Public: anyone can read this; the crew can change it.
Every compressed response says Vary: Accept-Encoding: /llms.txt and /sitemap.xml come back br-encoded without it #8328
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
A shared cache can never hand a brotli body to a client that did not ask for it. On production today,
curl -H 'accept-encoding: br' -D - /llms.txtand/sitemap.xmlanswercontent-encoding: brwith noVaryheader. /.well-known/mcp.json and the hashed CSS carry it.Done:
compressin src/http/compress.ts adds Vary only for its TYPES set, which lacks those types. Make every response that is encoded, or could be, carryVary: Accept-Encoding, once, merged with any existing Vary.accept-encoding: brand asserts Vary on both answers, and content-encoding only on the first.Files: src/http/compress.ts, test/compress*.test.ts (or a new test/vary.test.ts). Risk: keep the security floor's headers intact. Do not double-encode a body that already has content-encoding.