GuidePlatforms & Tools
How to clear one stale image from Cloudflare's cache
A reader still sees the photograph you replaced. Check which file the page loads, clear that URL in Cloudflare and verify the correction on a fresh request.

On this page
You replaced the lead photograph on a story, but a reader still sees the old one. Before clearing anything, find the address of the picture their browser requested. If the server holds the replacement and Cloudflare is serving the old picture at that address, purge that one URL. The next request can then pick up the correction without disturbing the rest of the site.
Find the file the reader actually received
Start on the published article at the screen size where the problem appeared. In Chrome, open DevTools and select Network. Reload the article, choose the Img filter and select the request for the photograph. The Preview tab helps when several filenames look alike. Under Headers, record the Request URL and look for CF-Cache-Status in Response Headers. Google's Network reference explains where to find those controls and how to disable the browser cache for a repeat check.
Keep the address intact, including capital letters in the path and any query string. An editor might replace the original photograph while the article still calls for a smaller crop. Compare the file identified in Network with the corresponding file on your publishing server. A matching filename in the media library is a start. A matching crop with the correction visible is much better evidence.
Suppose an event poster had the wrong entrance circled. Pick that detail as your test. You can then tell whether the image itself changed even if the new and old files have the same name, dimensions and nearly identical thumbnails. That distinction also matters when preparing article images for search, where you may publish several renditions of one photograph.
Read the response before deciding to purge
Cloudflare's response header guide defines HIT as a response found in its cache and MISS as a cacheable response that had to come from the origin server. If the exact image returns HIT and shows the wrong entrance, an old cached copy is a reasonable explanation. Check the version held at the origin first. Clearing a cached copy is only useful when the server can supply the corrected file.
A MISS with the old artwork changes the diagnosis. On that request the old image came through from the origin. Ask whoever manages the site to check what the origin serves for that exact public path, including the requested crop. Send the image URL, the cache status and the visible detail that distinguishes the two versions. Those three items give the person handling the correction a way to reproduce what you saw.
Purge the address you confirmed
In the Cloudflare dashboard, open Configuration for the affected site. Under Purge Cache, choose Custom Purge. Under Purge by, choose URL. Enter the full image address, review it and select Purge. Cloudflare's single-file purge instructions specify that the path is case-sensitive. Check it against your saved address, particularly if someone typed the filename by hand.
A redirect adds one decision. Clearing an address that returns 301 or 302 removes its cached redirect. The image at the destination has a separate cache entry, so use the final destination URL when the picture there is the problem. If a Cloudflare Transform Rule rewrites the path behind the scenes, use the address visible to the visitor for that resource. The internal rewritten path can look entirely plausible in a server log.
Keep the scope small. When a publisher purges an entire zone, requests for all the evicted resources can hit the origin as the cache fills again. Cloudflare's guidance on clearing a whole zone describes the extra load this can place on a busy site. A correction confined to one image gives you a precise address to act on.
Check what a fresh visitor gets
Return to Network in Chrome DevTools, select Disable cache and reload with DevTools open. Select the same image request and compare its preview with your correction. A MISS after the purge fits the expected first fetch. A subsequent HIT can carry the corrected file once a request has filled the cache again. The status tells you where this response came from. Your marked entrance tells you which picture it contains.
A returning reader may still have the older file on their device. Cloudflare's browser cache documentation explains that clearing its network cache leaves copies already stored in visitors' browsers untouched. If a fresh request shows the correct picture, record that result before acting on a report from a tab that was already open. It answers a different question from how long a particular browser will keep its copy.
Follow the variant if one audience still sees the old image
If the desktop article is correct but the mobile version looks wrong, repeat the first check at the affected screen size. Compare the two requested URLs. A different crop at a different address gives you a second file to check at the origin and, if needed, purge. Adding a random query string during the test can take you to a different cache entry and leave the reader's original address untested.
If the addresses match, ask how the site builds its cache keys. A key can distinguish responses using a cookie or a request header. The dashboard cannot generally supply those values for a URL purge, although Enterprise zones offer device and country options. Have the person who manages your Cloudflare cache rules check the matching rule and use its documented purge method. Give them the affected URL and the conditions under which the old picture appears. The correction is confirmed when that same request brings back the right entrance.


