Cloudflare Purge Did Not Update Your Page? Trace the Cache First

You changed a page, clicked “Purge Cache,” and the old version is still there. Before purging the whole zone again, work out which copy you are looking at. The browser, Cloudflare, an origin cache, or the application itself can each serve a different response.

Editorial illustration of a site owner tracing an outdated page through browser, CDN cache layers and the origin server

Editorial illustration: follow the response path before clearing a wider cache.

Summary

  • Confirm the changed page is correct at the origin and request the exact public URL.
  • Purge the full URL, including the correct path and query string where relevant; URL paths are case-sensitive.
  • Custom cache keys and Cache Rules that do not match purge requests can make a dashboard purge appear ineffective.
  • Verify the next response with headers and a clean browser session before escalating to a zone-wide purge.

Identify which copy is stale

Start with the exact URL a visitor opens, including https, hostname, path capitalization, and any meaningful query parameters. Ask a colleague on a different network or use a private browser window. If only your normal browser shows the older content, its local cache or a service worker may be involved; Cloudflare cannot remove a copy stored in that browser.

Next, compare the public response with the origin if you have a safe way to do that. Your hosting panel or developer can request the origin directly while preserving the correct Host header. Do not expose an origin address or bypass access controls just to perform this check. If the origin itself returns the old page, a CDN purge cannot fix the publishing or application cache problem.

Then inspect response headers such as CF-Cache-Status, Age, and cache directives. A HIT suggests Cloudflare served an object from cache; MISS means that request was not served from an existing Cloudflare cache entry. It does not prove the page is fresh at every upstream layer. A Worker, reverse proxy, WordPress cache plugin, or host-level cache may still be involved.

Purge one URL carefully

For a typical cached public file, Cloudflare’s dashboard supports a custom purge by URL. Enter the exact URL, review it, then submit the purge. Cloudflare documents that the hostname is normalized to lowercase but the path is case-sensitive. /News/ and /news/ can be different paths.

A purge removes the stored object; the next request can fetch a fresh copy from the origin and cache it again. So check that the origin now has the intended content first. Otherwise, the purge simply repopulates the edge with the stale version.

Treat query strings deliberately. If your site’s cache key distinguishes ?lang=en from ?lang=ms, purging the bare path may leave a variant untouched. Conversely, if a cache rule ignores query strings, a URL purge may clear the shared object. Know how your zone’s rules handle the URL before assuming one purge covers every variant.

When a URL purge does not match

Cloudflare notes two less obvious cases in its single-file purge documentation.

First, a custom cache key that includes a header or cookie cannot be fully represented by a simple dashboard URL purge. The API can include cache-key headers, but omitting a value means Cloudflare treats it as empty. If the cache key varies by device or country, Cloudflare documents Enterprise-specific options. Do not guess those values; ask whoever configured the cache rule.

Second, a Cache Rule might match only ordinary GET requests or depend on a request property absent from the purge. Cloudflare gives the example of a rule matching only GET. The purge may not follow the same rule path. Its documented remedy is to adjust the expression to account for PURGE where appropriate. This is a configuration change, so test it on a controlled rule and verify that it does not widen caching for private or personalized content.

Transform Rules introduce another wrinkle: Cloudflare says to purge using the URL seen by the end user, before the path transformation. If the site rewrites URLs, compare the public URL and origin path rather than copying an internal rewritten address into the purge box.

A safe troubleshooting sequence

  1. Confirm publication. Open the page on the origin or in the CMS preview and make sure the new version is saved and published.
  2. Capture the public URL. Copy it from a visitor’s browser. Note capitalization, query parameters, language, and whether www is present.
  3. Check a fresh request. Try a private window and another network. Record CF-Cache-Status, Age, and the response body or a distinctive updated phrase.
  4. Purge the exact object. Use the narrow URL purge first. Include the relevant URL variant only if your cache key distinguishes it.
  5. Request again and compare. A fresh MISS followed by a HIT is normal after a successful purge. Check that the body is now correct, not just that the status changed.
  6. Inspect upstream caches. If Cloudflare reports MISS but content remains old, investigate the origin, application cache, reverse proxy, or service worker.
  7. Escalate by scope. Use a prefix or tag purge if the change affects a known group of resources. Reserve “Purge Everything” for a deliberate zone-wide invalidation, because it discards useful cached objects and may increase origin load.

For a dynamic page such as a shopping cart, account area, or logged-in dashboard, do not solve a stale response by making it broadly cacheable. A shared cache can expose one visitor’s response to another if the rules are wrong. Fix the cache policy first.

Mistakes that waste time

Repeating the same purge without changing the URL or cache-key context does not add information. Clearing everything before checking the origin can create a flood of requests to an already struggling server. Testing only one browser can confuse local cache behaviour with CDN behaviour. And reading MISS as “Cloudflare is definitely not involved” ignores caches upstream of Cloudflare.

If you operate more than one site, keep a short record of each zone’s cache-key variations, URL normalization, and who owns the rules. That note can turn a future “the purge did nothing” report into a quick check instead of a guessing session. If you are deciding whether your origin location is part of the problem, this measurement guide for Malaysian visitors explains how to separate origin delay from edge caching.

Why a narrow purge matters

A narrow purge preserves warm cache entries for unrelated pages and assets. That matters most on a busy site or when the origin has limited capacity. The right scope depends on what changed: one product page usually calls for one URL; a shared CSS file may affect many pages; a template or global navigation change can require a wider invalidation.

My Take

A purge button is a useful last step, but it is a poor diagnostic tool. The most reliable fix starts by confirming the origin content and understanding how the cache key is built. If you cannot explain why a URL purge should match the cached object, pause before clearing a whole zone.

Bottom Line

Trace the response from browser to edge to origin, purge the narrowest matching URL, and verify the returned page. If the body stays stale after a Cloudflare MISS, check the application and origin caches next.

Sources