What is a CDN? Content Delivery Networks explained

  • VersionDude
  • Tooling
  • 6 min read

A CDN (Content Delivery Network) is a worldwide network of servers that caches copies of your site close to users, so pages load faster and your origin server is shielded. What a CDN is, how it works, and when you need one.

A CDN — Content Delivery Network — is a globally distributed network of servers that store cached copies of your website’s content and serve them to visitors from a location physically close to them. Instead of every request travelling to your single origin server (which might be in one country), a visitor in another continent is served by a nearby CDN “edge” server. The result is faster page loads, less load on your origin, and better resilience.

Why a CDN: the distance problem

A network switch with fibre patch cables in a data centre.
A network switch with fibre patch cables in a data centre.

The core problem a CDN solves is distance. Data travels at a finite speed, so a user far from your server experiences higher latency on every request. By placing copies of your static assets — images, CSS, JavaScript, videos — in dozens or hundreds of points of presence worldwide, a CDN cuts that distance dramatically for most visitors.

How a CDN works

When someone visits your site through a CDN, their request first reaches the nearest edge server. If that server already has a cached copy of the requested file (a “cache hit”), it returns it immediately without contacting your origin. If it does not (a “cache miss”), it fetches the file from your origin once, serves it, and stores it for the next visitor in that region.

  • Faster loads via nearby edge servers
  • Less load on your origin (caching)
  • Absorbs traffic spikes & DDoS
  • HTTPS termination + asset optimisation
  • Better Core Web Vitals / SEO

This caching layer is why CDNs are so effective: after the first request in a region, subsequent visitors are served from the edge at high speed, and your origin server only handles a small fraction of total traffic. Cache rules (TTLs) and cache invalidation let you control how long copies live and when they refresh.

More than just speed

Beyond speed, a modern CDN does more: it absorbs traffic spikes and DDoS attacks (the edge soaks up the load instead of your origin), terminates HTTPS/TLS close to users, compresses and optimises assets, and often adds a web application firewall. For a global audience, these benefits compound.

When you need a CDN

Typical reasons to put a CDN in front of a site include serving a worldwide audience, hosting heavy media, surviving traffic surges, and improving Core Web Vitals (faster loading helps both users and SEO). Even a modest site benefits from offloading static assets to an edge network.

A CDN is not your host

A key point of confusion: a CDN does not replace your hosting. It sits in front of your origin server and caches what that origin produces — you still need a reliable host for the origin itself, especially for anything dynamic (databases, APIs, server-side logic) that the CDN cannot simply cache.

For dynamic content, CDNs increasingly offer edge compute and smart caching, but the origin remains the source of truth. A common, robust setup is a solid origin server (a VPS or cloud server you control) with a CDN layered in front for static assets and global delivery.

For dynamic content, CDNs increasingly offer edge compute and smart caching, but the origin remains the source of truth. A common, robust setup is a solid origin server (a VPS or cloud server you control) with a CDN layered in front for static assets and global delivery.

— VersionDude

Do you need one?

So do you need a CDN? If your audience is local and your traffic is light, your host alone may be enough. If you serve users across regions, host media, or care about speed and resilience, a CDN is one of the highest-impact, lowest-effort upgrades — and it pairs naturally with a well-chosen origin host.

Related project