Do you need a CDN?

cdn, cloudflare, performance, caching, images · 0 found this helpful

A CDN (content delivery network) keeps copies of your images, CSS, and scripts on servers around the world. Visitors download from the nearest one. For most small Canadian businesses, a CDN is optional.

The short answer

You probably don't need a CDN yet if:

  • Most customers are in Canada. Your hosting is in Canada.
  • Your pages are cached and images are sized properly.
  • Your page loads in under about 2.5 s for the largest content (LCP). See Core Web Vitals.

You may benefit from one if:

  • You have visitors across the US, Europe, or Asia.
  • Your pages carry many large images or video.
  • You expect big traffic spikes, such as a launch or a sale.
  • You want extra protection from attack traffic.

Try these first

CDNs hide problems more than they fix them. These are faster to do and often give a bigger gain.

  1. Turn on page caching. See LiteSpeed Cache explained.
  2. Resize and compress images. See Optimize images for the web.
  3. Remove unused plugins and scripts.
  4. Use a current PHP version. See PHP version and OPcache for speed.

Test again. See Test your site's speed properly.

What a CDN does and doesn't help

It helps It doesn't help
Serving images and files faster to faraway visitors A slow WordPress backend. Dynamic pages still come from your server
Reducing load on your server Slow plugins or a heavy database
Absorbing traffic spikes Poor images, since a big file is still big
Hiding your server from simple attacks Site hacks through weak passwords

Your options

Cloudflare

Cloudflare has a free plan. You can use it as a CDN and firewall. It works by pointing your nameservers at Cloudflare or by adding a CNAME. Setup for Barbrick: Use Cloudflare with Barbrick hosting. Watch for these when using it:

QUIC.cloud (LiteSpeed's CDN)

It integrates with the LiteSpeed Cache plugin for WordPress and works on our servers. QUIC.cloud has a free tier with monthly limits, and you manage the account yourself. Ask us before you set it up, since it changes your DNS.

A CDN for images only

Some image plugins serve images from their own network. This helps if images are your main load.

How to tell if it worked

Compare before and after on the same page, from a location far from Canada. Look at TTFB and LCP. If the gain is small, you didn't need it.

Things to check after turning one on

  • Padlock shows on all pages
  • Forms and checkout still work
  • New images and edits appear
  • Your real visitor IP shows in logs, if you use IP rules. See Block visitors by IP address

Was this helpful?

Still stuck? Ask us and we'll walk you through it.