Opens in a new tab

Website speed

What is a CDN and does your website need one?

What a CDN is, how it works, what it can and can’t do, how to decide on one and what our own test found.

CheckedNovember 4, 2026
Reading time
Listen to this guide
0:00 /4:51

Short answer: A CDN, or content delivery network, keeps copies of your site’s files on servers in many places, so each visitor gets them from one nearby. It helps most when your visitors are far from your server; for a local business with a fast server, measure before you add one.

How a CDN works

MDN describes a CDN as a group of servers spread out over many locations that store copies of data, so the server closest to each user can answer. Your own server, which the CDN copies from, is what web.dev calls the origin.

web.dev explains that CDN servers sit closer to users than the origin, so the round trip is shorter. Their caches also spare many requests the trip to the origin.

Files that rarely change, such as images, videos and versioned scripts, should be cached with a long lifetime: web.dev gives 6 months or 1 year as examples. Pages can be cached too, if the CDN can purge them quickly when they change.

What a CDN can and can’t do

What a CDN brings What it means What to check
Shorter distance Servers closer to your visitors cut the round trip Where your visitors actually are
Less load on your server Stored copies answer most requests and absorb traffic spikes How much the CDN serves from its cache
Faster connections Many CDNs offer Brotli, TLS 1.3 and newer HTTP versions That each feature is switched on
One more dependency If the CDN goes down or is blocked, your site can fail What happens when it is unavailable
A possible slowdown MDN warns a CDN can also make a site slower Your own pages, with and without it

From web.dev’s guide to content delivery networks and MDN’s CDN entry, read November 4, 2026.

web.dev adds that because CDNs reduce server load, they cut server costs and suit traffic spikes. MDN adds the other side: a CDN is one more service your site depends on, and one more place an attacker could target.

How to decide on a CDN and set it up

  1. Find out where your visitors are, in your analytics.
  2. Measure the first byte and LCP of your main pages for those visitors.
  3. Pick a CDN and point your domain, or only your static files, to it.
  4. Cache versioned files for a long time, and keep pages short or purge them when you publish.
  5. Switch on Brotli, TLS 1.3 and HTTP/2 or HTTP/3 if the CDN offers them.
  6. Make logged-in visits and personal pages skip the CDN’s cache.
  7. Measure again with and without the CDN before you keep it.

Our TTFB guide covers the first byte, and our website caching guide covers what never belongs in a shared cache. Our HTTP/2 and HTTP/3 guide shows how to check the protocol.

What we found when we tried one

On October 8, 2026, we put Cloudflare’s network in front of our site. Then we ran Lighthouse on our home page in English and Spanish, alternating between our server directly and the CDN.

On a slow mobile connection, the main content appeared sooner straight from our server: 2.96 seconds against 3.16 in English, and 1.86 against 2.49 in Spanish. On the simulated phone the median score was 93 for both. On desktop the CDN won, 0.71 seconds against 0.81.

It didn’t win everywhere, so we took it out the same day. Our own page cache already answers in about 40 milliseconds. As of November 4, 2026, our site answers straight from our server, with no CDN in front.

Before you keep a CDN

  • You know where your visitors come from.
  • Your pages load faster with the CDN in your own tests.
  • Versioned files are cached for a long time.
  • Pages are purged when you publish.
  • Personal pages skip the CDN’s cache.
  • You know what happens if the CDN is down.

RememberA CDN shortens the distance to your visitors. If your server is already close and fast, test before you pay for it.

Server and delivery settings like these are part of our technical SEO service.

Quick answers about CDNs

What is a CDN?

A content delivery network: a group of servers in many places that keep copies of a site’s files, so the server closest to each visitor can answer. Your own server, the origin, still holds the original.

Does a CDN make a website faster?

Often, for visitors far from your server, because the copy travels a shorter way. MDN warns it can also make a site slower, so measure your own pages with and without it before you keep it.

Is a CDN the same as web hosting?

No. Hosting runs the origin server that builds your pages. A CDN sits between that server and your visitors and serves copies of what it can store.

What should a CDN cache?

Static files such as images, videos and versioned scripts and stylesheets, with a long lifetime: web.dev gives 6 months or 1 year as examples. Pages can be cached too if the CDN can purge them quickly when they change.

What are the risks of using a CDN?

MDN names two: an extra service your site depends on, which can break it if it goes down or is blocked, and an extra point an attacker could use to serve bad files.

Sources

Read on November 4, 2026. web.dev: Content delivery networks (CDNs) and Optimize Time to First Byte. MDN: CDN. Our case: Lighthouse on our home page with and without a CDN on October 8, 2026, and how our site answers on November 4, 2026.

Pedro Galindez

Pedro Galindez

Founder of Feedback Studios, a bilingual growth studio in Miami.

Listen0:00 /4:51

More guides

Checked November 4, 2026

Website caching: how page caching speeds up your site

What page caching does, what to cache and what to skip, how to set it up on WordPress and how our own page cache works.

Checked November 4, 2026

Browser caching: what it is and how to set cache headers

What browser caching is, which Cache-Control to use for each kind of file, how to set it up and check it, and what we changed on our site.

Checked November 4, 2026

Website speed: how to make your site load faster

Why website speed matters, what slows a page, how to speed it up step by step, lab tests and real visits, and what we measured and fixed on our site.

Checked November 4, 2026

Open Graph tags: what they are and how to control your link previews

What Open Graph tags do, the four every page needs, the image size and alt text, the steps to take and what our own pages send.

Checked November 4, 2026

What is a domain name? How to choose one for your business

What a domain name is and its parts, how to choose one, what Google says about keywords and endings, and how to plan it for more languages.

Checked November 4, 2026

Website down: how to check it and how Google reacts

How to tell if your website is down for everyone, what Google does with server errors, how to take a site down safely and what to check after.

Next step

Tell us what you need

Write to us on WhatsApp or send us a message. We answer in English or Spanish.