Skip to content
FunnelGuard

Fix guide by FunnelsGuard

CDN purge failing or edge outage: how to find and fix it

OPS-115Medium impactPartlyBy FunnelGuardPublished Updated
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.

How a failed purge hurts a campaign
  1. Deploy new pageNew offer and form go live at the origin
  2. Purge requestAPI call rejected or only partly applied
  3. Edge serves old copyVisitors see the old offer or form
  4. Lead or saleForm fails or the price is wrong

The deploy works at the origin, but the edge keeps the old copy.

Conversion rate by region during a partial edge outageExample numbers
Conversion rate by region during a partial edge outage (example)Region A: 3.1 %; Region B: 2.9 %; Region C (edge down): 0.2 %0123.12.90.2Region ARegion BRegion C (edge down)%

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

Check for a failed purge or edge problem
  1. 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.

  2. 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.

  3. 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.

  4. Check the CDN status page

    Your provider publishes incidents by region. Match any incident to the times your conversions dropped.

  5. 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.

Read cache headers for a pagebash
curl -sI https://example.com/landing-page | grep -iE 'HTTP/|age:|cache-status|cf-cache-status|x-cache|date:'

How to fix it

Fix a failing purge
  1. 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.

  2. 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.

  3. Purge again

    Purge the affected URLs first. If the site is still wrong, purge everything once, then check headers again.

  4. Shorten cache lifetimes for pages that change

    Landing pages and pricing pages should have short cache lifetimes so a missed purge fixes itself quickly.

  5. 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.

Where to purge on common platforms
  1. 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.

  2. Purge at the CDN too

    Plugin cache and CDN cache are separate. Clear both.

Cloudflare: purge specific URLs and fail on errorbash
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

Confirmation checks
  • 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

Prevention checklist
  • 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
How a silent purge failure unfolds
  1. Example: 09:00

    New offer deployed, purge call returns an auth error nobody reads

  2. Example: 09:05

    You check the page and see the new version via your own cache

  3. Example: 11:00

    Ad visitors in other regions still see the old offer

  4. 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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.