Cache & CDN Headers Auditor
Is your site actually being cached — or is every visitor re-downloading everything?
HTTP caching is how browsers and CDNs reuse a response instead of downloading it again — and it is decided entirely by response headers: Cache-Control, ETag, Last-Modified and Age. Enter a URL and this auditor fetches it once through the checker, lists every header it received, and scores the caching behaviour 0–100 with findings and fixes. It grades caching only — for the security headers on the same response, use the Security Headers Checker; for load timing, the Page Performance Audit. The companion article HTTP cache headers, explained covers the sane defaults for HTML and static assets.
Last updated:
1. The URL to audit
Results
Caching score
CDN verdict
Findings
Every header received
🔒 The check sends only the URL you enter to the SysOSX checker server, which fetches it once and returns its response headers for analysis in your browser. No file is uploaded, no report is stored, and the target is never fetched directly from your browser.
The headers that decide caching
Cache-Control is the one header that decides almost everything. Its directives are a small vocabulary: max-age says how many seconds a response may be reused; s-maxage overrides it for shared caches (CDNs); no-store forbids keeping the response at all; no-cache allows storing but forces revalidation before reuse; private restricts caching to the browser; public explicitly allows shared caches; immutable promises the body will never change during its lifetime; stale-while-revalidate lets a cache serve a slightly old copy while it refreshes in the background. When Cache-Control is missing entirely, caches guess — usually from Last-Modified — and the guess is rarely the behaviour you wanted.
ETag and Last-Modified are the validators: they let a cache ask “has this changed?” with a conditional request (If-None-Match / If-Modified-Since) and get a tiny 304 Not Modified instead of the full body when it has not. A response with neither validator can never be revalidated — once it is stale, the only option is a complete re-download. ETag is the stronger tool because it identifies the exact bytes; Last-Modified has one-second resolution and breaks when servers in a cluster disagree about clocks.
A CDN adds a reporting layer of its own. CF-Cache-Status (Cloudflare) and X-Cache (Varnish and many CDNs) say what the edge did — HIT means the response came from the edge cache, MISS that the edge had to fetch it from your origin. Age says how many seconds the response has already spent in a cache, CDN-Cache-Control and Surrogate-Control give the CDN its own instructions separate from the browser-facing Cache-Control, and Cache-Tag labels responses so they can be purged in groups. None of these change caching by themselves; they are how you find out what actually happened.
Two headers quietly sabotage caching. Vary names the request headers the response depends on — necessary when content is negotiated — but Vary: * means “it varies on something unnameable” and makes the response unreusable in practice. And Set-Cookie on a response that also declares itself publicly cacheable is a contradiction: shared caches must not serve one visitor’s cookies to another, so most CDNs refuse to cache such responses at all, whatever Cache-Control says.
What this auditor does — and what it does not
The SysOSX checker server fetches the URL once (following redirects, each hop re-validated), and returns every response header in the order it arrived, duplicates included. Your browser then does the analysis: it parses the Cache-Control directives, checks the validators, compares Age against the freshness lifetime (s-maxage when present — a CDN is a shared cache — otherwise max-age), inspects Vary and Set-Cookie, collects the CDN signals, and scores the result with the formula in the “Score” glossary entry.
Because expectations differ, the auditor applies one of two profiles and names it in the report: an HTML profile for documents (where no-store or a short max-age is often correct) and a static profile for assets such as CSS, JavaScript, images and fonts (where a long max-age with immutable is the goal). The profile is chosen from the response Content-Type and the URL’s file extension — a heuristic, stated on the report, not a certainty.
The demos are labelled and live. The example.com demo shows the minimal case: no Cache-Control at all, a Last-Modified validator, and a Cloudflare edge reporting a HIT. The wikipedia.org demo shows a rich CDN response: s-maxage and max-age, an ETag, and Varnish X-Cache headers. Both run through the checker when you click — they are live runs, not canned results, so the Age values and cache statuses you see are the ones returned at that moment.
Be honest about what this audit can see
One GET, from one place, at one moment. CDN behaviour varies by edge location, by time and by the cache’s current state: a MISS now may be a HIT a second later, and the edge nearest the checker is not the edge nearest your visitors. Treat a cache-status result as a sample of one, not a verdict on the CDN.
The tool judges headers, not your origin configuration. It cannot see rules you set in a CDN dashboard that did not apply to this response, cache rules keyed to cookies or geography it does not send, or a second response — it audits the one response it received, and a correct configuration can still produce an odd single sample.
Correct caching depends on the resource. Fingerprinted assets should be cached for a year; a personalised HTML page should not be cached at all. The auditor applies its HTML or static profile heuristically and says which one it used — when the profile is wrong for the resource, some findings will be wrong with it, and the right response is to judge the finding, not just the score.
Key facts
| Cache-Control | The response header that sets caching policy: max-age / s-maxage (freshness lifetime in seconds), no-store, no-cache, private, public, immutable and stale-while-revalidate. It overrides Expires wherever both appear. |
| ETag / Last-Modified | Validators. They let a cache revalidate a stale response with a conditional request and receive a small 304 Not Modified instead of the full body. A response with neither can never be revalidated. |
| Age | Seconds the response has already spent in a cache, reported by the cache itself. Age greater than the freshness lifetime (s-maxage, else max-age) means a cache served a response past its own expiry. |
| CF-Cache-Status / X-Cache | CDN reporting headers: HIT = served from the edge cache, MISS = the edge fetched it from origin, EXPIRED / STALE / REVALIDATED / BYPASS / DYNAMIC describe the other edge outcomes. |
| Vary | Names the request headers the response depends on, so caches store one variant per value. Vary: * makes a response practically unreusable — no cache can key on “everything”. |
| Score | A 0–100 score starting at 100: no Cache-Control −20; no validators −10; Vary: * −10; Age over the freshness lifetime −10; Set-Cookie with public caching −10; a static asset forbidding caching or with max-age=0 −10; Expires disagreeing with max-age −5. Deductions are capped at −60 in total. 90+ Excellent, 70–89 Good, 50–69 Needs work, below 50 Poor. |
| Official reference | RFC 9111 — HTTP Caching (rfc-editor.org) |
Frequently asked questions
How is this different from the Security Headers Checker?
They read the same kind of response and grade different halves of it. The Security Headers Checker scores the headers that protect visitors — Content-Security-Policy, HSTS, X-Frame-Options and friends — and ignores caching completely. This auditor does the opposite: it grades Cache-Control, the validators, Age and the CDN signals, and ignores security. A response can be excellent at one and poor at the other; most real sites need both checks.
The demo showed a MISS — is my CDN broken?
Almost certainly not. A MISS means the edge that answered the checker did not hold a fresh copy at that moment — the first request after an expiry, a purge, or a quiet URL nobody near that edge had asked for. Request the same URL again a few seconds later and the same edge usually answers HIT. What would be a problem is a permanent MISS on a popular URL together with a Cache-Control that forbids storage (no-store) or a Set-Cookie on every response — those are configuration findings, and they are what the findings list is for.
What Cache-Control should I actually send?
Two defaults cover most sites. For HTML documents: a short lifetime with revalidation — Cache-Control: no-cache, or max-age=0 with an ETag — so changes go live immediately but repeat visits still get cheap 304s. For static assets with a version in the URL (app.a1b2c3.js): Cache-Control: public, max-age=31536000, immutable — a year, no revalidation, and the URL itself is the cache-buster when the file changes. The full reasoning is in the companion article.