⑧ Cache HIT / MISS (cache demo)
/demo/cache/ — this path is configured with Cache Everything, Edge TTL 300s
Read the headers live
Each click really fetches asset.txt and shows the cache status returned by the edge.
Status cheat sheet
| HIT | Served from Cloudflare cache, no origin round-trip |
| MISS | Not in cache; fetched once from origin and stored |
| EXPIRED | Cache entry expired, refetched from origin |
| DYNAMIC | Not cached (compare: the homepage HTML is DYNAMIC by default) |
Three-step live demo
- First click → expect MISS (fetched from origin and written to cache).
- Keep clicking → expect HIT (no origin round-trip; compare response times).
- Cloudflare Dashboard → Caching → Configuration → Custom Purge: paste https://oldm.nc-demo.cf/demo/cache/ and https://oldm.nc-demo.cf/demo/cache/asset.txt → Purge → click again → back to MISS. Proves cache can be invalidated precisely, any time.
Side-by-side: watch /demo/pass.html in DevTools (DYNAMIC — always to origin) vs this path — HTML can be cached too; that is the whole point of Cache Everything.