CDN Behaviour Explorer
Which CDN serves a URL, whether it caches it (HIT/MISS, Age, TTL) and how, from two requests.
How it works
Sends two consecutive requests to a public URL (or reads two pasted header sets) and compares them: CDN detection from vendor headers (Cloudflare, CloudFront, Fastly, Akamai, Vercel, Netlify, Bunny, Azure, Google), edge cache status HIT/MISS/EXPIRED, Age progression, edge location, shared-cache TTL, Vary and compression. Only this server's vantage point is used; there is no multi-region comparison.
- Live mode: two GET requests in a row through the SSRF-guarded fetcher (body capped at 64 KiB each), identical request headers.
- CDN detection from vendor headers: cf-ray/cf-cache-status (Cloudflare), x-amz-cf-id/x-amz-cf-pop (CloudFront), x-served-by cache-xxx/x-fastly-request-id (Fastly), akamai-grn/x-akamai-*/AkamaiGHost (Akamai), x-vercel-id, x-nf-request-id, BunnyCDN, x-azure-ref, Via: google.
- Cache status from the vendor header or RFC 9211 Cache-Status (the last listed cache is closest to the client); Age (RFC 9111 §5.1) growing between requests means one stored copy answered both.
- TTL: CDN-Cache-Control / Surrogate-Control > s-maxage > max-age > Expires − Date. Browser TTL is max-age.
- Region comparison is not available: tools run from one server. HeaderLens has multi-region probe agents, but they are not wired into tools.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Signalhouse Website & internet infrastructure inspector
Inspect DNS, TLS, mail, CDN and routing of all your domains — and see what changed.
Related tools
- HTTP Technology Explorer – Headers, compression, caching, HTTP/2-3 hints, redirects, security and tech stack for a URL.
- HeaderLens – Is a website down? Multi-region status, redirects, TLS and security headers.
How to use the CDN Behaviour Explorer
Find out which CDN serves a URL, whether it caches the response, for how long, and why the second request is faster.
What it is for
You put a site behind a CDN to make it faster and cheaper, but it's surprisingly easy to end up with a CDN that forwards every request to your server. A missing s-maxage, a cookie or an overly broad Vary header is enough. This tool checks what actually happens: it sends two identical requests to a URL in a row (or reads two sets of response headers you paste) and compares them.
From vendor headers it detects the CDN (Cloudflare, CloudFront, Fastly, Akamai, Vercel, Netlify, Bunny, Azure, Google), reads the edge cache status (HIT, MISS, EXPIRED…), watches the Age header change between requests, identifies the edge location when the vendor exposes it, and works out the shared-cache TTL, browser TTL, Vary and compression.
The requests come from one server, so you see one edge location only. A HIT here says nothing about Tokyo or São Paulo. And if the site strips vendor headers, the tool may not identify the CDN at all.
Worked example
The page example pastes two Cloudflare responses fetched five seconds apart. Both carry cache-control: public, max-age=60, s-maxage=3600 and vary: Accept-Encoding. The tool returned:
Pasted responses: Cloudflare; cache MISS → HIT, Age 0→5s; verdict warmed-on-second-request; shared TTL 3600 s.
What the details show:
| Request 1 | Request 2 | |
|---|---|---|
| Cache status | MISS | HIT |
| Age | 0 | 5 |
| Edge (from cf-ray) | FRA | FRA |
| ETag | W/"abc123" | W/"abc123" |
| Encoding | br | br |
The first request found nothing in Frankfurt's cache, fetched from the origin and stored it. The second was served from that copy: Age grew by exactly the 5 seconds between the Date headers, and the ETag stayed stable — one stored object answered both.
The caching block explains the policy: Cloudflare may keep it for 3,600 s (from s-maxage), while browsers keep it for only 60 s (max-age). That's a sensible split: the CDN absorbs traffic, and visitors still get updates within a minute of the CDN refreshing.
How to read the result
- CDNs: detected vendor, confidence and the exact header used as evidence.
- Requests: status, cache status, Age, Date, ETag, edge location (POP) and content encoding for each request.
- Verdict: e.g. warmed-on-second-request, both HITs (already cached), both MISSes (not cached at all), with a plain-English explanation.
- Caching: shared TTL (CDN-Cache-Control or Surrogate-Control first, then s-maxage, max-age, Expires), browser TTL, and Vary.
- Region comparison: always "not available" — one vantage point.
Tips and common mistakes
- MISS → MISS on a static asset usually means the CDN is told not to cache: look for
private,no-store, aSet-Cookie, or a missing TTL. Vary: CookieorVary: User-Agentcan fragment the cache into countless variants;Vary: Accept-Encodingis fine.- Age that doesn't increase between requests means two different cache nodes answered, or the object was re-fetched.
- Run the check twice a minute apart. The second run tells you whether objects stay cached or get evicted quickly.
- Different
cf-raysuffixes or POP codes across runs mean you're hitting different edges, each with its own cache.
FAQ
Why is my first request always a MISS?
Each edge location caches independently and only after someone asks for the object. A MISS on the first request from a new location is normal.
What's the difference between s-maxage and max-age?
s-maxage applies to shared caches like CDNs; max-age applies to browsers (and to CDNs if no s-maxage is set). Using both lets you cache long at the edge and short in browsers.
The tool found no CDN, but I use one. Why?
Some setups remove vendor headers, or the CDN only proxies without caching. Absence of headers isn't proof there's no CDN.
Can I test from several countries?
Not with this tool; it runs from a single server. Repeat the request from machines in other regions and paste their headers instead.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://cdnbehaviorexplorer.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://cdnbehaviorexplorer.usefulweb.site/mcp· tool namecdn_behavior_explorer
Example request
curl -s -X POST https://cdnbehaviorexplorer.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'