AI
We just shipped support for the ugliest part of HTTP: Vary
Publication: Simon Willison's Weblog
Author: Not available in collected metadata
Source published: 23/09/2026, 23:14:57 UTC
Briefing created: 28/09/2026, 04:42:00 UTC
Based on a feed excerpt; full article content has not been acquired. Source evidence retrieved 28/09/2026, 04:12:26 UTC.
Briefings
Cloudflare announced support for the Vary header in September 2026, enabling servers to distinguish between HTML and JSON responses based on the Accept header. This resolves a long-standing issue where caching servers would incorrectly serve JSON to users expecting HTML, a problem that previously required manual URL suffixes like .json. The implementation allows for more predictable and secure content delivery behind Cloudflare's edge network.
Key points
- Cloudflare shipped support for the Vary header in September 2026, allowing servers to differentiate between HTML and JSON responses based on the Accept header.
- Prior to this update, Cloudflare ignored the Vary header on non-image requests, causing servers to cache JSON responses and serve them to users expecting HTML.
Context and limitations
Support is limited to HTTP requests where the Accept header is present; older browsers or edge cases may not fully utilize the new header behavior.
Generated by Bittrees-hosted qwen35-2b sha256:aaf42c8b7c3c on 28/09/2026, 04:42:00 UTC. Based on publisher-provided feed evidence; may not cover the full original article. Check the source for details.
View archived briefing on IPFS
bafybeibvshjs3vhj4quh2ua7ij57xvem4ro5nra43mf5guuj33qcpcasy4