On this page
What this issue is
A CDN such as Cloudflare, Fastly, CloudFront or Bunny stores a copy of your page on servers around the world. This is the edge cache. When you deploy a new version, your origin server has the new page, but the edge may still hold the old one until the copy expires or you purge it.
Visitors then see the old page. Some may see the new page while others see the old one, because each edge location expires its copy at a different time. This makes the problem hard to spot from your own browser.
- DeployNew page goes live on the origin
- CDN edgeStill holds the old HTML copy
- VisitorReceives the old page
- ConversionOld offer, form or tags used
The deploy works, but the edge cache never learns about it.
Why it costs you leads or sales
Deploys often fix something that matters: a broken form, a wrong price, a missing tracking tag or a new offer. If the CDN serves the old page, that fix never reaches visitors, and you may believe it is live because you see it yourself.
Stale cache
- Old price or expired offer still shown
- Old form markup posts to a removed endpoint
- New tracking tag missing from the page
- Old script file names return 404 errors
Cache purged
- New price and offer shown everywhere
- Form posts to the right endpoint
- Tracking tags load as intended
- HTML and asset file names match
How to check if your site has it
Compare origin and edge
Open the page in a private window and view the source. Check that the change you deployed (a new text string or tag) is present.
Read the cache headers
Run the curl command below. Look for cache status headers such as cf-cache-status: HIT (Cloudflare), x-cache: Hit from cloudfront, or an age value that is larger than the time since your deploy.
Bypass the cache
Add a random query string, for example ?nocache=123. If that URL shows the new version and the plain URL shows the old one, the cache is stale. Note that some CDNs ignore query strings, so also test from another network or device.
Test from another region
Edge locations differ. Check from a phone on mobile data or through a different location, since you may be served by a different edge.
curl -sI https://www.example.com/landing-page/ | grep -iE 'cache-control|age|cf-cache-status|x-cache|etag|last-modified'| Header | What it means |
|---|---|
| cf-cache-status: HIT | Cloudflare served its stored copy |
| cf-cache-status: DYNAMIC | Not cached, fetched from origin |
| age: 86400 | The copy is about 24 hours old |
| cache-control: max-age=... | How long it may be reused before checking again |
| x-cache: Hit from cloudfront | CloudFront served a stored copy |
How to fix it
The immediate fix is to purge the stale URLs. The lasting fix is to stop the CDN holding HTML for long, and to purge automatically when you deploy. Menu names differ by provider and plugin version, so check your own dashboard.
Purge the affected URLs
In your CDN dashboard, purge the changed pages first. Purge everything only if many pages changed, because it makes the origin handle a burst of requests.
Set sensible cache headers for HTML
Send Cache-Control: no-cache (revalidate each time) or a short max-age for HTML. Keep long max-age values for fingerprinted assets such as app.3f9a1c.js.
Use versioned asset file names
Make your build add a hash to CSS and JS files so a new deploy produces new URLs and old HTML never points to a replaced file.
Purge in the deploy pipeline
Add a purge call as the last step of your release so nobody has to remember it.
Check page rules that cache HTML
If you use a rule such as Cache Everything, set an Edge Cache TTL that fits how often you change the page, or exclude pages that change often.
Purge from your cache plugin
In your caching plugin (WP Rocket, W3 Total Cache, LiteSpeed Cache and similar), use the clear or purge all cache option after each update. Menu names vary by plugin.
Purge the CDN too
Plugin cache and CDN cache are separate. If you use Cloudflare, clear it from the Cloudflare dashboard or its official plugin's purge option.
Enable automatic purge
Most cache plugins can clear a page's cache when you update it. Turn that setting on and test it by editing a page.
Know what Shopify caches
Shopify serves your store through its own CDN and normally refreshes it when you save a theme or content. You cannot purge it manually.
Check for a second CDN or proxy
If you put Cloudflare or another proxy in front of the store, purge that layer after theme changes.
Test in a private window
Reload the live URL and compare to the theme preview. If the difference persists, contact Shopify support with the URL and time.
Publish the container
A GTM change only goes live after you click Submit and Publish. Confirm the new version number is live.
Check for a cached container
The gtm.js file is cached by browsers for a short time. If you proxy it through your own domain, purge that URL on your CDN.
Republish the site
Click Publish in the Designer and choose all domains. Webflow refreshes its hosting cache on publish.
Purge any CDN in front
If you added Cloudflare or another CDN in front of Webflow, purge it after publishing.
Save and republish the funnel step
Save the page in the funnel builder and check the live URL in a private window.
Check a custom-domain proxy
If a CDN or proxy sits in front of your custom domain, purge the funnel URLs there.
Publish again
Click Publish in the editor. Wix manages its own CDN and updates it on publish.
Check for an extra layer
If you added your own proxy or CDN in front of Wix, purge it from that provider.
Save the change and reload
Squarespace manages its own caching. Check the live page in a private window after saving.
Purge any outside CDN
If you use another CDN in front, purge that one from its dashboard.
Send correct headers
Set Cache-Control for HTML in your server or app, for example no-cache with an ETag, and long max-age plus immutable for hashed assets.
Call the purge API on release
Add the provider's purge API call to your deploy script. See the Cloudflare example below.
curl -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/purge_cache" \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Content-Type: application/json" \
--data '{"files":["https://www.example.com/","https://www.example.com/landing-page/"]}'location ~* \.(html)$ {
add_header Cache-Control "no-cache";
}
location ~* \.(js|css|woff2)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}How to confirm it's fixed
- The curl headers show a fresh age value or a MISS/EXPIRED status after the purge
- The new text, price or tag appears in the page source in a private window
- The plain URL and the ?nocache=123 URL show the same content
- The page looks the same from mobile data and a second location
- Your form submits and the test lead reaches your inbox or CRM
- Your tracking hits fire on the page (check in the browser Network tab)
How to prevent it happening again
Make purging part of the release, not a manual chore. Keep HTML on short or revalidated cache rules and let only fingerprinted files live long at the edge.
10:00
You deploy a fix for the quote form. It works on the origin.
10:05
You check the page in your browser and it looks right, because your edge has refreshed.
10:30
Other edge locations still hold the old HTML and the old form.
Next day
Leads are lower, but nobody connects it to the deploy.
Next day
You purge the cache and the new page reaches everyone.
- Add a CDN purge step to your deploy pipeline
- Send no-cache or a short max-age on HTML
- Use hashed file names for CSS and JS
- Keep old asset files available for a short time after each deploy
- After every release, check the live URL from outside your network
- Review any Cache Everything rule and its Edge Cache TTL
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It checks whether the page's DOM (the structure of the rendered page) hash has stayed unchanged, and it runs text assertions, which look for text you expect on the page. If a deploy should have changed the page but the hash is unchanged, or the expected text is missing, you get an alert.
What it does not do: it does not read your CDN's cache headers, tell you which edge location holds an old copy, or purge anything. It also cannot know that a deploy happened unless you set up a text assertion for the new content. Pages that change on their own, such as rotating banners, can make a hash a weaker signal.
To cover the rest by hand, run the curl header check after each release, test with a ?nocache= query string, and look at the page from a second network. Add a purge step to your deploy pipeline. A robot visitor runs your real journeys on a schedule from the EU or the US, and a failure is re-checked from a second region before one alert goes out with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and needs no card, and a free read-only website audit is available.
Frequently asked questions
Questions people ask
Why is my website still showing the old version after I updated it?
Most often a cache holds the old copy. It may be your CDN, a cache plugin, the host or your own browser. Purge the CDN for the changed URLs, clear any plugin cache and reload in a private window.
How do I purge the Cloudflare cache after a deploy?
In the Cloudflare dashboard, open Caching, then Configuration, then Purge Cache, and purge by URL or choose Purge Everything. You can also call the purge_cache API from your deploy script with a zone ID and an API token.
How can I tell if my CDN is serving a cached page?
Request the page with curl -I and read the headers. A cf-cache-status of HIT, an x-cache hit value or a high age value means the response came from the cache. Comparing the page with a ?nocache=123 URL also helps.
Should I cache HTML pages on a CDN?
You can, but only with a short lifetime or revalidation, and with a purge on every deploy. HTML changes often and links to assets that may be replaced. Long cache times are best kept for hashed CSS, JS and images.
Why do some visitors see the new page and others the old one?
CDNs keep separate copies at many edge locations, and each copy expires at its own time. Until you purge, visitors in some places get the new page and others the old. Check from another region or network to see it.
Can a stale cache break my forms and tracking?
Yes. An old page may post to a removed endpoint, miss a new tracking tag, or load script files that no longer exist. Leads and conversions can then drop without any visible error on the page.
Can FunnelGuard detect a stale CDN page?
Partly. It checks whether the DOM hash is unchanged and runs text assertions, so it can flag a page that still shows old content. It does not read CDN cache headers or purge the cache for you.
How do I stop a CDN serving old pages in future?
Add a purge step to your deploy pipeline, send no-cache or short max-age on HTML, and use hashed names for assets. Then check the live page from outside your network after each release.
Related issues
- OPS-111Cache stripping UTM/gclid query paramsFix guide
- OPS-115CDN purges failing / edge outageFix guide
- OPS-110Cached form nonce expired (form rejects submissions)Fix guide
- OPS-116Rocket Loader / JS optimisation breaking tags or formsFix guide
- OPS-117Minification/combine breaking scriptsFix guide
- OPS-108Cached page with another visitor's personal data/cartFix guide