Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Image CDN failing: how to find and fix broken images

OPS-118Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

An image CDN (content delivery network) is a service that stores and serves your images from servers close to the visitor. Examples are Cloudflare, Cloudinary, imgix, Shopify's CDN or a WordPress image plugin's CDN. When it fails, the page HTML loads fine but the image requests return errors such as 403, 404, 5xx, a certificate error or a timeout.

Why it costs you leads or sales

Visitors judge trust in seconds. A product page without photos, a landing page without a hero image or a checkout without trust badges feels unsafe or abandoned. People leave instead of reporting it, so you rarely hear about it.

Where an image CDN failure breaks the journey
  1. Ad clickVisitor arrives
  2. Page HTML loadsText and layout appear
  3. Images from CDN403, 404 or timeout
  4. Visitor trusts pagePage looks broken
  5. Lead or purchaseNever reached

The page loads, but the images do not, so trust drops before the visitor reaches the form or cart.

Illustrative effect on conversion rateExample numbers
Illustrative effect on conversion rate (example)Images working: 4 %; Images broken: 1.5 %02341.5Images workingImages broken%

Example: conversion rate of a landing page with working images versus one with a broken hero and product images. Numbers are illustrative only.

How to check if your site has it

Find failing image requests
  1. Open the page in a private window

    Use a clean browser with no cache or extensions, ideally on a mobile connection too, since the failure may be regional.

  2. Open DevTools

    Press F12 (or Cmd+Option+I on Mac), go to the Network tab, tick Disable cache and reload.

  3. Filter by Img

    Look for rows in red or with a status other than 200 or 304. Note the status code and the domain.

  4. Open one failing URL directly

    Paste it in a new tab. A 403 suggests hotlink or WAF rules, 404 a missing file or wrong path, 5xx an origin or CDN fault, and a security warning an SSL problem.

  5. Check the CDN status page

    Look at your provider's status page for incidents in the affected region.

What common image errors usually mean
What you seeLikely cause
403 ForbiddenHotlink protection, WAF rule or signed URL expired
404 Not FoundFile deleted, renamed or wrong CDN path after a migration
520-526 or 5xxCDN cannot reach your origin server
Certificate warningExpired or mismatched SSL on the CDN hostname
Mixed content blockedHTTP image URLs on an HTTPS page
Slow then failsOrigin overloaded or plan bandwidth limit reached

How to fix it

Fix depends on the error from the check above. Start with the common causes, then use the platform steps.

Fix the failing image CDN
  1. Match the fix to the status code

    Use the table above. Fix the cause of the specific error rather than switching the CDN off blindly.

  2. Check the CDN hostname and DNS

    Confirm the image domain (for example cdn.example.com) still has a valid DNS record and points to the right provider.

  3. Check SSL

    Make sure the certificate covers the CDN hostname and has not expired. Reissue it in your CDN dashboard if needed.

  4. Review hotlink and firewall rules

    Allow your own domain, www and subdomains as referrers, and make sure no WAF rule blocks image paths or common user agents.

  5. Purge the cache

    If the CDN cached an error response, purge the affected URLs or the whole cache after fixing the cause.

  6. Use a fallback if needed

    Temporarily turn off the CDN rewrite so images load from your origin while you fix the CDN.

Platform-specific steps
  1. Check your CDN or image plugin settings

    In the plugin that rewrites image URLs (for example your cache, CDN or image optimisation plugin), verify the CDN URL is correct and active. Disable the CDN rewrite to test.

  2. Regenerate URLs after a migration

    If you moved domains, run a search-and-replace on the database for the old image domain and clear plugin caches.

  3. Check file permissions

    Make sure the wp-content/uploads folder is readable by the web server so the CDN can pull the files.

Fall back to the origin image if the CDN image failshtml
<img src="https://cdn.example.com/images/hero.jpg"
     onerror="this.onerror=null;this.src='https://www.example.com/images/hero.jpg';"
     alt="Product hero" width="1200" height="600">

How to confirm it's fixed

Confirm the fix
  • Reload the page in a private window with Disable cache ticked and see no red image rows in Network.
  • Open a previously failing image URL directly and get a 200 status.
  • Test on mobile data and in a second country if you can, since CDN failures can be regional.
  • Check key pages: home, landing pages, product pages and checkout.
  • Purge the CDN cache once more and recheck.
Before and after

Image CDN failing

  • Broken image icons on key pages
  • Network tab shows 403, 404 or 5xx on images
  • Page looks untrustworthy
  • Visitors leave before converting

Image CDN healthy

  • All images return 200 or 304
  • Certificate and DNS valid
  • Hotlink and WAF rules allow your domains
  • Pages look complete

How to prevent it happening again

Prevention habits
  • Set a renewal reminder for the CDN hostname certificate and domain.
  • After any migration, domain change or theme change, test your key pages for broken images.
  • Review hotlink and firewall rules when you add subdomains.
  • Avoid signed image URLs with short expiry on pages that get cached.
  • Keep a documented fallback to serve images from origin.
  • Monitor key pages on a schedule instead of relying on visitors to tell you.

How FunnelGuard handles this

FunnelGuard detects this today. When a robot visitor runs your journey, it loads each page and checks for broken resources, such as images that fail to load. This is the no_broken_resources check. If an image on a journey page fails, FunnelGuard re-checks from a second region before sending one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause.

Questions people ask

Why are my images not loading on my website?

Usually the image host returns an error. Open DevTools, go to the Network tab, filter by Img and look at the status code. A 403 points to hotlink or firewall rules, 404 to a missing file or wrong path, and 5xx to an origin or CDN fault.

How do I fix broken images after setting up a CDN?

Check that the CDN hostname has valid DNS and SSL, that the CDN can reach your origin, and that image URLs use the right domain over HTTPS. Then purge the CDN cache and reload in a private window.

Why do my images show a 403 error on the CDN?

A 403 means the CDN or origin refused the request. Common causes are hotlink protection that does not allow your own domain or subdomains, a firewall rule blocking the image path, or a signed URL that has expired.

Can a broken image CDN hurt my conversions?

Yes. Missing product photos, hero images or trust badges make a page look broken or unsafe, and visitors tend to leave without telling you. The effect is stronger on paid traffic, where each click costs money.

How do I quickly get images back while I fix the CDN?

Turn off the CDN URL rewrite in your plugin or theme so images load from your own origin, or add an onerror fallback to the origin URL. Fix the CDN properly afterwards and purge its cache.

Why are images broken only for some visitors or countries?

CDNs serve from regional servers, so one region can fail while others work. Geo rules, an edge outage or a cached error response can also affect only some visitors. Test from another network or region.

Does FunnelGuard detect broken images?

Yes. Its no_broken_resources check flags resources, including images, that fail to load on the pages a journey visits. It re-checks from a second region before alerting you with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_broken_resources.

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.