{
  "id": 9476888,
  "title": "We just shipped support for the ugliest part of HTTP: Vary",
  "url": "https://urgent.news/2026/09/23/we-just-shipped-support-for-the-ugliest-part-of-http-vary",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-23T22:41:53.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://blog.cloudflare.com/vary-support/"
  },
  "original_language": "en",
  "account": "The \"Vary\" header in HTTP responses has been considered one of the more problematic aspects of the protocol due to its complexity and interoperability issues. This header informs intermediary caches about which request fields might impact the response, such as language selection, image formats, or regional content. However, simply listing these headers does not necessarily lead to optimal cache efficiency. For example, if a server serves the same content in multiple languages, but a cache only stores each distinct header value separately, it could result in a large number of cache entries that are not truly unique. This situation can lead to suboptimal cache performance, with responses being served even though they are identical or only slightly different.\n\nTo address this challenge, Cloudflare has introduced support for Vary in its Cache Rules, allowing customers to decide how to handle variations in header values. The origin specifies which request headers may affect the response, and the customer then determines the level of variation that matters for caching. For instance, an origin might serve content in different languages and include \"Vary: Accept-Language\" in the response. Cloudflare can then be configured to either ignore certain headers (like those with predictable or controlled values) or use specific strategies for others. This approach helps balance the need to serve appropriate responses with the goal of maintaining cache efficiency by avoiding the creation of an excessive number of unique cache entries.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Hacker News",
        "title": "We just shipped support for the ugliest part of HTTP: Vary – Cloudflare Blog",
        "url": "https://urgent.news/2026/09/23/we-just-shipped-support-for-the-ugliest-part-of-http-vary-cloudflare",
        "published": "2026-09-23T22:03:21.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}