Re:Serve Markdown to AI Agents with Accept Headers
by cryptonym on Thursday August 27, 2026 @04:55AM
(#49461792)
It's often better to implement your caching logic at the Edge than just going with Vary support. Vanilla Vary support leads to cache dilution.
Accept (and other headers you might include in vary) may take many different values that you want to tie to a single cache entry.
Akamai is another case where Vary is harmful, from their docs [1]:
Cloudflare's docs do seem to indicate they support the Vary header as does Fastly. But one should read the docs of their CDN to find out the behavior. Do not assume Vary is supported.https://techdocs.akamai.com/property-mgr/docs/rm-vary-header