On this page
What this issue is
A CDN (content delivery network) keeps copies of your pages and files on servers around the world, called edge locations. When you change a page, you tell the CDN to purge (delete) the old copy. Two things can go wrong.
A purge fails. The request is rejected (expired API token, wrong zone ID, rate limit) or it is accepted but never reaches every edge. Old copies stay live.
An edge outage. One region or one CDN location returns errors or times out. Your origin server is fine, and people near that location see a broken site while you do not.
Why it costs you leads or sales
Old pages can show a retired offer, wrong prices, a form that no longer works or old tracking code. An edge outage can block a whole country or region from your landing page while your ads keep sending them traffic. Because it is partial, nobody on your team notices. You only see lower conversions for some regions.
- Deploy new pageNew offer and form go live at the origin
- Purge requestAPI call rejected or only partly applied
- Edge serves old copyVisitors see the old offer or form
- Lead or saleForm fails or the price is wrong
The deploy works at the origin, but the edge keeps the old copy.
Example: illustrative numbers. One region is served errors, so its conversion rate drops while the average hides it.
How to check if your site has it
Look at the purge log
In your CDN dashboard or deploy tool, find the last purge request. Look for 4xx or 5xx responses, authentication errors or rate limit messages.
Compare headers
Request the page and read the cache headers. A high Age value or a HIT status after a purge means the old copy is still there.
Test from more than one region
Use a different network, a VPN or a free multi-location check tool. Compare the page content and status code from each place.
Check the CDN status page
Your provider publishes incidents by region. Match any incident to the times your conversions dropped.
Bypass the cache
Add a random query string, such as ?v=123, or request the origin directly. If that version is correct, the cache is the problem.
curl -sI https://example.com/landing-page | grep -iE 'HTTP/|age:|cache-status|cf-cache-status|x-cache|date:'How to fix it
Read the exact error
Common causes are an expired or revoked API token, a token without cache purge permission, the wrong zone or distribution ID, and rate limits from too many single-URL purges.
Replace the credentials
Create a new token with only the purge permission and update it wherever it is stored, such as your deploy pipeline or caching plugin.
Purge again
Purge the affected URLs first. If the site is still wrong, purge everything once, then check headers again.
Shorten cache lifetimes for pages that change
Landing pages and pricing pages should have short cache lifetimes so a missed purge fixes itself quickly.
For an edge outage, wait or reroute
If the provider has an incident, follow it and contact support. If you run a multi-CDN setup, shift traffic away from the failing provider.
Check your cache plugin
In your caching plugin settings (for example the CDN or Cloudflare section), re-enter the API token and run its purge-all action.
Purge at the CDN too
Plugin cache and CDN cache are separate. Clear both.
Know what you control
Shopify runs its own CDN. You cannot purge it directly, so re-save the theme file or page and test from several regions.
Check any extra proxy
If you put another CDN in front, purge there and review its token.
Republish
Publish the site again to refresh the hosted CDN. If you use your own CDN in front, purge it as well.
Add purge to the deploy script
Call your CDN's purge API after the deploy and make the script fail loudly if the response is not a success.
Version static files
Use file names with a hash, such as app.3f9c.js, so new files never depend on a purge.
curl -sS -f -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://example.com/landing-page"]}'How to confirm it's fixed
- Purge API returns a success response
- Page headers no longer show an old Age value or a stale HIT
- The new content, price and form show on the live URL
- The page returns 200 from at least two regions
- A test form submission reaches your inbox or CRM
- Tracking tags fire on the new version
How to prevent it happening again
- Store purge tokens with an expiry reminder in your calendar
- Make deploys fail when the purge call fails
- Use hashed file names for scripts and styles
- Keep short cache lifetimes on landing and pricing pages
- Subscribe to your CDN's status page alerts
- Run a post-deploy check from more than one region
Example: 09:00
New offer deployed, purge call returns an auth error nobody reads
Example: 09:05
You check the page and see the new version via your own cache
Example: 11:00
Ad visitors in other regions still see the old offer
Example: Next day
Lower conversions noticed, token replaced and cache purged
How FunnelGuard handles this
FunnelGuard detects this only partly. A robot visitor runs your real journeys on a schedule from the EU or the US, so it will notice the effects: a page that errors, a form step that fails, a missing tracking hit or a test lead that never arrives. A failed check is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.
Questions people ask
Why is my CDN purge not working?
The most common causes are an expired or wrong API token, a token without purge permission, the wrong zone or distribution ID, and rate limits. Check the response from the purge request, fix the credentials, then purge again and verify the cache headers.
Why do I still see the old page after purging the cache?
Your browser, a plugin cache, a server cache or another CDN layer may still hold the old copy. Clear each layer, then test with a private window or a query string such as ?v=2 to see whether the CDN is the cause.
How do I check if my CDN is having an outage?
Open your provider's status page and compare the incident times with your traffic drops. Then request your page from different regions and networks to see if one returns errors or timeouts.
Can a CDN edge outage hurt only some visitors?
Yes. Each edge location serves people nearby, so one failing location can break your site for one region while everyone else, including you, sees a working page. That is why a partial outage often goes unnoticed.
Should I purge everything or only specific URLs?
Purge specific URLs first, because it is faster and keeps the rest of your cache warm. Purge everything only when you are unsure what changed or when URL purges do not fix it.
How do I stop stale pages after every deploy?
Add the purge call to your deploy script and make the script fail if it returns an error. Use hashed file names for scripts and styles, and keep short cache lifetimes on pages that change often.
Can FunnelGuard tell me my CDN purge failed?
Not directly. FunnelGuard checks your journeys, tracking hits and test leads, so it can catch the symptoms such as a broken form or page error, but it does not read purge logs or test every edge location.
Related issues
- OPS-107CDN serving stale page after deployFix guide
- OPS-113CDN origin errors (520-526 Cloudflare errors)Fix guide
- OPS-111Cache stripping UTM/gclid query paramsFix guide
- OPS-110Cached form nonce expired (form rejects submissions)Fix guide
- OPS-118Image CDN failing (broken images)Fix guide
- OPS-122Allow-list missing for monitoring IPs (false blocks)Fix guide