Skip to content
← All HTTP Headers
Caching

Vary

Tells caches which request headers to consider when deciding whether to serve a cached response.

Syntax

Vary: <header-name>, <header-name>

Example

Vary: Accept-Encoding, Accept-Language

Description

Vary tells caches which request headers affect the response. Different header values need separate cached versions.

Common values: Accept-Encoding, Accept-Language, Cookie.

Careful with Vary: Cookie or Vary: * — these effectively disable CDN caching.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers

Related guides

Longer-form reading on this topic from the knowledge base.

Automate this check

Set up continuous monitoring and get an alert when something breaks. No manual runs to remember.