Skip to content
FunnelGuard

Fix guide by FunnelsGuard

No CDN for images and static files: how to check and fix it

PRF-059Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Static files are files that do not change per visitor: images, fonts, CSS, JavaScript and videos. When there is no CDN, these files are downloaded from your origin, the one server that hosts your site. A visitor in Sydney loading a site hosted in Frankfurt pays for the long trip on every file.

Why it costs you leads or sales

Slow images and scripts delay the moment a landing page looks finished and usable. Visitors from paid ads are impatient, so a slow hero image or a late-loading form can lead to a bounce before the form appears. Serving everything from one origin also means a traffic spike from a campaign hits your server directly, which can slow the whole page.

Where the delay happens without a CDN
  1. Ad clickVisitor far from your host
  2. HTML loadsFrom the origin
  3. Images and scriptsEach file travels from the origin
  4. Page looks readyAppears late
  5. Form submitSome visitors have left

Every static file makes the full trip to the origin server.

Image load time by visitor distanceExample numbers
Image load time by visitor distance (example)Near origin, no CDN: 0.8 seconds; Far from origin, no CDN: 2.6 seconds; Far from origin, with CDN: 0.9 seconds0120.82.60.9Near origin, no CDNFar from origin, no C…Far from origin, with…seconds

Example: illustrative numbers for a hero image served from one origin versus a CDN edge.

How to check if your site has it

Check whether static files come from a CDN
  1. Open browser developer tools

    In Chrome, press F12 and open the Network tab. Reload the page with the cache disabled.

  2. Click an image or CSS file

    Open the Headers tab and read the response headers. Look for headers such as cf-cache-status, x-cache, x-amz-cf-id, x-served-by or via.

  3. Compare the file's domain

    If images load from your own domain and the headers show nothing like the above, there is probably no CDN. A different domain on its own does not prove a CDN, so check the headers too.

  4. Test from another region

    Run the page through a speed test that lets you pick a location far from your host, such as WebPageTest, and compare image times.

Check response headers from the command linebash
curl -sI https://example.com/wp-content/uploads/hero.jpg | grep -iE 'server|cache|via|x-cache|cf-'

How to fix it

The right fix depends on your platform. Shopify, Wix, Squarespace and Webflow already serve files through a CDN, so you mainly need to make sure you use their built-in media hosting.

Add a CDN by platform
  1. Choose a CDN

    Options include Cloudflare (free plan available), Bunny.net, or a CDN built into your cache plugin or host. Check your host first, as many managed hosts include one.

  2. Connect it

    For a full-site CDN like Cloudflare, change your domain's nameservers as the provider instructs. For a pull CDN, enter the CDN URL in your cache plugin's CDN settings.

  3. Rewrite asset URLs

    Enable the plugin's option to serve wp-content, wp-includes and uploads from the CDN hostname, then clear all caches.

Cache-Control for static files on nginxnginx
location ~* \.(?:jpg|jpeg|png|webp|avif|gif|svg|css|js|woff2)$ {
  add_header Cache-Control "public, max-age=31536000, immutable";
}

How to confirm it's fixed

Confirm the CDN is working
  • Response headers on images show a CDN header such as cf-cache-status: HIT or x-cache: Hit.
  • The second load of a file is a cache hit, not a miss.
  • A speed test from a far location shows faster image and script times than before.
  • Forms, cart and checkout still work and are not served from cache.
  • Tracking tags still fire after the change.

How to prevent it happening again

Check the CDN setup after a host move, a domain change or a theme switch, since these often reset DNS or plugin settings. When you add large images or new scripts, make sure they load through the CDN hostname. Re-run a far-region speed test every few months or before a big ad campaign.

How FunnelGuard handles this

FunnelGuard does not check for a missing CDN yet. It is a possible future check. FunnelGuard does run your real customer journeys on a schedule from the EU or the US, and it checks each step, your tracking hits and whether test leads arrive. If slow assets break a form or button step, that step failing can show up in those journey checks, but FunnelGuard does not tell you a CDN is missing.

Questions people ask

Do I need a CDN for my website?

Not always. If your visitors are all near your server and your pages are light, the gain is small. A CDN helps most when you have visitors in several countries, large images, or traffic spikes from ad campaigns.

How do I check if my website uses a CDN?

Open your browser's developer tools, go to the Network tab, click an image and read the response headers. Headers like cf-cache-status, x-cache, x-amz-cf-id or via usually mean a CDN is serving the file.

Is Cloudflare a CDN and is it free?

Yes, Cloudflare offers a CDN and has a free plan that covers basic caching of static files. You connect it by changing your domain's nameservers. Paid plans add more features.

Does Shopify have a CDN for images?

Yes. Shopify serves uploaded images and theme files from its own CDN, usually at cdn.shopify.com. You mainly need to upload images to Shopify instead of linking to files on another server.

Will a CDN make my website faster?

Usually yes for images, CSS and JavaScript, especially for visitors far from your server. It does not speed up slow server-side work such as database queries or a slow checkout, which need separate fixes.

Can a CDN break my forms or checkout?

It can if dynamic pages are cached by mistake. Set the CDN to cache only static files and public pages, and bypass the cache for carts, checkouts and form endpoints. Test a submission after any change.

Does FunnelGuard check if my site has a CDN?

No, not yet. It is a possible future check. FunnelGuard runs your customer journeys and checks the steps, tracking and test leads, so use a speed test and response headers to check your CDN yourself.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.