Caches cannot reuse the page
Vary: * or missing caching instructions stop browsers and CDNs keeping a copy, so every visit is built again.
Why it matters #
Cache-Control tells browsers and CDNs whether, and for how long, they may keep a copy of the page. Without it, each one decides for itself. Vary: * says the answer can change for reasons not in the request, so no cache can reuse a stored copy at all.
When nothing is reused, every visit goes back to your server, which makes pages slower and the server busier, most of all when many people arrive at once.
How to fix it #
Send Cache-Control with a choice that fits the page, for example "public, max-age=300" for a public page that changes often, and "max-age=31536000, immutable" for files whose name changes when they change. Keep private or no-store for baskets and accounts.
Remove Vary: * and name only the request headers that really change the page, usually Accept-Encoding. Check with the Edge Cache Checker.
What it looks like, and fixed #
HTTP/2 200
content-type: text/html; charset=utf-8
vary: *
Vary: * and no Cache-Control: no browser or CDN can reuse a stored copy.
HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: public, max-age=300
vary: Accept-Encoding
A public page that caches may keep for five minutes, varying only by compression.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Browsers and CDNs cannot reuse [the page address] on my website [your website address], built with [your platform, e.g. WordPress on Apache behind Cloudflare]. First read the response headers, or ask me to paste them, and explain plainly what Cache-Control, Vary, Expires and any CDN cache headers say, and what part of my stack probably adds each one. Explain why the page cannot be reused: Vary: *, no caching instructions, or no-store on a public page. Then give me the right headers for each kind of address: public pages such as public, max-age=300; static files with versioned names such as max-age=31536000, immutable; baskets, checkout and accounts private or no-store. Replace Vary: * with only the headers that really change the page, usually Accept-Encoding. Rules: back up config first, never let a cache store personal pages, change only caching headers, and keep page addresses the same. Give the exact lines or settings and where they go. Then tell me to re-check with the URSY.com Edge Cache Checker at ursy.com/cache-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
Caching plugins and hosts set Cache-Control for pages. Look for a plugin or theme that sends Vary: * and turn that option off, keeping baskets and accounts private.
Your server or hosting
On nginx use add_header Cache-Control "public, max-age=300"; for public pages, and find where Vary: * is added. On Apache, mod_headers does the same with Header set.
Your CDN (for example Cloudflare)
In Cloudflare or a similar CDN, set cache rules for public pages and static files, and bypass the cache for baskets, checkout and logged-in visitors.
Check it is fixed #
Run the URSY.com Edge Cache Checker again: the page should have caching instructions, no Vary: *, and a second visit should be served from the cache.
Official source #
Questions #
Will caching show visitors old prices?
Only for as long as you allow. A short max-age on public pages, and clearing the cache after big changes, keeps them fresh.
Could caching show one customer another customer's basket?
Only if personal pages are cached by mistake. Keep baskets, checkout and accounts private or no-store, and test while logged in.
More problems in Speed and caching
- Google rates the page slow High priority
- Many render-blocking files Medium priority
- The HTML of the page is very large Medium priority
- The page is too heavy Medium priority
- The server is slow to send the page Medium priority
- Many files from other websites Low priority
- The HTML is not compressed Low priority