Why it matters
Vary tells caches to store a separate copy per value of a request header. One careless Vary: User-Agent can drop a CDN hit rate to near zero.
Paste a few realistic requests to see how many copies your header would create.
How to use it
- Type or paste your input; the example shows the format.
- Press Explain cache keys. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Does Cloudflare respect Vary?
Mostly for Accept-Encoding only, plus Accept for images with Vary for Images. Use a custom cache key for anything else.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.