⑧ 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

HITServed from Cloudflare cache, no origin round-trip
MISSNot in cache; fetched once from origin and stored
EXPIREDCache entry expired, refetched from origin
DYNAMICNot cached (compare: the homepage HTML is DYNAMIC by default)

Three-step live demo

  1. First click → expect MISS (fetched from origin and written to cache).
  2. Keep clicking → expect HIT (no origin round-trip; compare response times).
  3. 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.