Work out what a browser cache and a shared cache each do with your response headers, with every step of the decision and the directive behind it.
Waiting for headers
Works out what a browser cache and a shared cache each do with this response, and why.
Nothing to simulate yet
Paste response headers, or load the example to see a browser and a CDN disagree about the same response.
HTTP Cache Simulator runs entirely on your device — the headers are parsed in your browser, no request is made to anything, and nothing you paste is sent anywhere. That matters: headers pasted from devtools routinely carry cookies and bearer tokens.
You’re on the Free plan. Compare plans
`Cache-Control` reads like a list of independent switches and is nothing of the kind. The directives override each other in a fixed order, two of them mean nearly the opposite of what their names suggest, and the answer differs between the browser's own cache and a CDN in front of it.
The two names that cost the most: `no-cache` does **not** mean do not cache — it means store it and revalidate before every reuse. The directive that prevents storage is `no-store`. And `must-revalidate` does not force revalidation on every request; it only forbids serving the response once it has gone stale.
So this gives two answers side by side. They diverge on `private`, on `s-maxage`, on `proxy-revalidate` and on `Authorization`, and seeing where they diverge is the point — those directives exist to make them differ, and shipping one while reasoning about the other is the usual mistake.
Each answer is shown as the steps that produced it, in the order the specification takes them: storable, then freshness lifetime and which header set it, then current age including any `Age` the response arrived with, then whether a stale copy may be served. Every step names the directive responsible.
Where the specification leaves something to the implementation — heuristic freshness above all — it is computed the way the RFC suggests and labelled a guess rather than presented as the answer.
no-store prevents storage: nothing is written down. no-cache stores the response and requires revalidation before every reuse — a conditional request goes out each time, and a 304 avoids re-sending the body. If you want nothing kept, you want no-store.
Almost always s-maxage, which a shared cache honours and a browser ignores entirely. It overrides max-age for the CDN only, which is exactly what it is for — a short browser lifetime with a long edge lifetime.
No. The response is still stored; it is simply stale on arrival, so it is revalidated before each use and a 304 saves re-downloading the body. That is usually what you want, and it is strictly better than no-store for anything that changes rarely.
Because there are effectively unlimited distinct user-agent strings, so nearly every visitor gets their own cache entry and the hit rate collapses. Vary on something with few values, or on nothing.
No. They are parsed in your browser and no request is made to anything. That matters here: headers pasted from devtools routinely carry cookies and bearer tokens.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab