← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Cloudflare Adds Vary Header Support to Cache Rules

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Cloudflare now supports the HTTP Vary header in Cache Rules.
  • Vary header informs caches which request fields affect responses.
  • Users can normalize, pass exact values, or bypass cache for Vary headers.
  • Prevents caches from serving incorrect content for varied URLs.

Cloudflare Implements Vary Header Support

Cloudflare has announced the addition of support for the HTTP Vary response header within its Cache Rules. This feature is now available on all plans, providing users with more granular control over how their content is cached when multiple representations exist for a single URL.

Understanding the Vary Header

The Vary header is a standard HTTP mechanism that instructs intermediary caches, such as Cloudflare's, which request fields might influence the response sent by the origin server. Websites utilize Vary to serve different versions of content, like varying languages, image formats, compression schemes, or regional content, from the same URL.

For example, if a browser requests a webpage and an API client requests data from the same URL, the Vary: Accept header tells the cache that the 'Accept' header value must be considered when choosing between the HTML and JSON responses. Without Vary, the cache might serve the wrong content to either client.

Enhanced Cache Control

With this new support, while the origin server still specifies which request headers may affect a response, Cloudflare users can now define how these Vary headers are processed. Options include normalizing known negotiation headers, passing exact values when small differences are critical, or bypassing the cache entirely if the variation is too unpredictable. This allows users to determine how much variation is meaningful for their caching strategy.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~26 min · 21 stories · Sep 23

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Cloudflare has implemented support for the HTTP Vary response header within its Cache Rules feature, allowing users to control how caches handle varied content. This update enables more precise caching of resources that deliver different representations from a single URL, preventing incorrect content delivery to clients.