Why does Cloudflare show CF-Cache-Status: HIT after a purge while some visitors still see old CSS?

Was this question useful?Community ranking

Answers

1 answer

A `HIT` only means Cloudflare found a copy for that particular edge request; it doesn’t mean every visitor is asking Cloudflare for the CSS, or that every cache-key variant was purged. After a purge, the next request can refill the edge cache, so later requests can legitimately be `HIT` again. The usual reason some people still see old CSS is their browser cache or a service worker: if the browser considers that same URL fresh, it may not make a network request at all. Check the exact CSS URL, including query string, hostname, and any custom cache-key inputs such as device or language. Then inspect `Cache-Control`, `Age`, and `CF-Cache-Status` on a fresh request. For future deploys, use versioned or hashed CSS filenames and update the HTML reference; that gives changed CSS a new URL instead of relying on every cache to forget the old one.

Was this answer helpful?Community ranking

Your answer

Sign in to answer.

Keep exploring

Similar questions

Browse all