AI Weekly Malaysia

Back to items Summaries

We just shipped support for the ugliest part of HTTP: Vary

ID
29196
Status
new
Published
24 Sep 2026, 7:14 AM
Fetched
28 Sep 2026, 12:16 PM
Provider
Simon Willison
Category
developer-ai
Original URL
https://simonwillison.net/2026/Sep/23/hn-49823961/
Source URL
https://simonwillison.net/atom/everything/

Excerpt

My comment on We just shipped support for the ugliest part of HTTP: Vary — Hacker News.I've been wanting this from Cloudflare for years. The classic problem here is if you do that thing where user agents that send "accept: text/html" get HTML, while user agents that don't get JSON or some other format. This used to be impossible to deploy behind Cloudflare caching, because they ignored the Vary header on anything other than images - so you risked caching the JSON version and then serving it up to someone who was expecting HTML. (Independent of the Cloudflare feature I ended up deciding never to use that pattern, because I prefer having URL that predictably returns HTML or JSON - I add a .json suffix to my apps to serve JSON instead.) Tags: http, cloudflare

Summary

No summary yet. It will appear after the daemon summarizes this item.

Top