What headers can I vary the cache on?

Currently, the only vary header that we support is the accept-encoding header. The vary header allows objects to be cached differently based on the given header: when varying on accept-encoding, a cached object will only be valid for clients with matching accept-encoding headers and a client with a different accept-encoding will get a fresh resource.

Users on the Cloudflare Business plan can use the Bypass Cache on Cookie Page Rule option alongside Cache Everything to cache static HTML, but bypass the cache when a user needs dynamic content (after they login or add something to their cart). Enterprise customers have access to other Page Rule settings such as "Cache on Cookie", "Cache by Device Type" and Custom Cache Keys.

Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk