SpaceStack
Menu
Glossary

What is a CDN (content delivery network)? A plain-English explanation

A CDN is a network of servers around the world that keep copies of your site close to your users, so pages load faster for everyone. Here is how it works and why a small team should use one.

Published Jul 4, 2026 • Updated Jul 4, 2026

Stylized cyberpunk illustration used as the editorial avatar for Daniel P.
Tech Lead Senior Software Engineer · Oslo, Norway
Short definition

A CDN is a global network of servers that caches copies of your site near your users, cutting latency and load so pages load faster and your origin server does less work.

The short version

A CDN — content delivery network — is a fleet of servers spread around the world that keep copies of your site close to your users. Instead of every visitor reaching your one server (maybe in Virginia), a user in Tokyo gets the files from a nearby node in Tokyo.

Distance is time. Data still travels at a physical limit, so shaving thousands of kilometers off the round trip makes pages measurably faster — especially the first thing users see.

The best part for a small team: a CDN is one of the rare performance wins that is cheap, often free, and does not require rewriting your app. I reach for one on almost every project.

How a CDN works

Without a CDN vs with a CDN
Without a CDN
Everyone travels far
A visitor in Tokyo waits for every file to cross the planet from your one origin server.
With a CDN
Content is next door
A nearby edge node already has a cached copy and serves it in milliseconds.
Same site, very different distance. The CDN turns one far server into many nearby ones.

Why a small team should care

A CDN quietly improves several things at once:

  • Faster loads everywhere, not just near your server. This directly helps Core Web Vitals, especially LCP.
  • Less load on your origin. The CDN absorbs most requests, so your small server survives traffic spikes.
  • Basic resilience and security. Most CDNs add DDoS protection and keep serving cached pages if your origin hiccups.
  • Cheaper bandwidth. Edge delivery is often cheaper than serving everything yourself.

Getting the most from a CDN

The CDN does the distance part automatically. You get the big wins by pairing it with good caching rules.

Use a CDN well in four steps
  1. 1
    Put it in front
    Route your domain through the CDN so all traffic hits the edge first.
  2. 2
    Cache static assets hard
    Images, CSS, JS and fonts should be cached for a long time.
  3. 3
    Version your files
    Use hashed filenames so you can cache forever and still ship updates.
  4. 4
    Tune HTML caching
    Cache pages briefly or use smart invalidation so content stays fresh.
Cloudflare product screenshot
Cloudflare logo
Cloudflare
Best for: Best free default

The most popular CDN for small teams — free tier, global network, DDoS protection and simple DNS-based setup.

Open Cloudflare
Fastly product screenshot
Fastly logo
Fastly
Best for: Programmable edge control

A developer-favorite CDN with powerful, programmable edge caching and instant purges for teams that want fine control.

Open Fastly
Bunny.net product screenshot
Bunny.net logo
Bunny.net
Best for: Low-cost simplicity

A simple, cheap, fast CDN that is easy to set up for static assets and media — great value for small projects.

Open Bunny.net

All three have generous free or low-cost tiers for small sites. Confirm current limits and features before committing.

FAQ

Do I really need a CDN for a small site?

If you have any visitors outside your server’s region, yes — it is one of the cheapest speed wins available. Many hosts and platforms (like Cloudflare) offer it free, so there is rarely a reason to skip it.

Is a CDN the same as caching?

No, but they work together. Caching is the idea of storing a ready-made copy; a CDN is the global network that stores those copies near users. See caching explained.

Will a CDN break my dynamic content?

Not if you configure it right. You cache static assets hard and either skip caching for personalized pages or use short, smart cache rules. The workflow to get this right is in how to profile and fix a slow web app.

Does a CDN help SEO?

Indirectly and meaningfully. Faster global load times improve Core Web Vitals, which is a ranking signal, and a more reliable site is crawled more happily.

Keep reading

  • Glossary
    What are Core Web Vitals? A plain-English explanation

    Core Web Vitals are three numbers Google uses to measure how fast, stable and responsive your page feels to real users — LCP, INP and CLS. Here is what they mean and why they matter.

  • Glossary
    What is caching? A plain-English explanation

    Caching is storing a ready-made copy of something so you don't have to build it again — the single most effective trick for making software feel fast. Here is how it works and where it bites.

  • Comparison
    Best web performance monitoring tools for small teams in 2026

    A working engineer's shortlist of the best web performance monitoring tools for small teams — real-user data, Core Web Vitals tracking, error context and pricing that fits a small budget.

  • Workflow
    How to profile and fix a slow web app

    A methodical workflow for finding and fixing what actually makes a web app slow — measure real users first, find the biggest bottleneck, fix it, and prove the win. From an engineer who has shipped 30% speedups on slow devices.