What a CDN is and why your visitors in another country care
A content delivery network serves your site from a location near each visitor. Why that matters for speed, uptime and attacks, and when you already have one.
The short answer
A content delivery network is a set of servers in many cities that each hold a copy of your website. When someone visits, the network serves them from the location closest to them. The visitor in Singapore and the visitor in Rotterdam both get the page from nearby, instead of both waiting on one machine in one data centre.
That is the speed argument. The uptime and security arguments are at least as strong.
Why distance still matters
Light is fast, but a page is not one trip. Loading a page involves dozens of round trips between the visitor’s device and wherever the site lives: the connection setup, the encryption handshake, the page, the styles, the images. Each round trip across a continent adds delay, and they add up before anything appears on screen.
A CDN removes most of that distance for most of the trips. For a visitor far from your origin, the difference between a page that feels instant and one that feels sluggish is often just where the copy came from.
What a CDN does beyond speed
| Job | What it means for you |
|---|---|
| Serves copies close to visitors | Fast pages worldwide, better Core Web Vitals on mobile |
| Absorbs traffic spikes | A newsletter, a press mention or a campaign does not take the site down |
| Filters attack traffic | Floods and many automated attacks are stopped at the network, not at your site |
| Manages certificates | HTTPS on every edge, renewed automatically |
| Caches when the origin is slow or down | Visitors keep seeing pages even when something behind the network has a bad day |
| Optimises images and compression | Smaller files with no work on your side |
Static sites: the CDN is the hosting
For a website built as finished files, there is no origin server answering visitors at all. The build produces the files, the network stores them at every edge, and every visit is served from a copy. Nothing can be overloaded, nothing needs patching on a Sunday, and a traffic spike is just more copies being read. This is the setup behind the sites we run, and it is why they survive launches that would have taken a shared-hosting site offline.
Do you already have one?
- Modern hosting platform (the kind that builds your site from a repository and gives you preview links): yes, built in.
- Managed WordPress hosting: often yes for images and scripts, sometimes for pages; ask.
- Classic shared hosting with a control panel and FTP: almost certainly not.
- Behind Cloudflare or a similar service: yes, and probably with attack filtering too.
What this means for you
If your site is on a modern platform, you have a CDN and can stop thinking about it. If it is on classic hosting, putting a CDN in front is the cheapest upgrade to speed, uptime and security you can make, and moving to a static build on a modern platform removes the server problem entirely. Either way, the question to ask your partner is simple: where does a visitor in Kuala Lumpur get our homepage from?
Frequently asked questions
Does a CDN matter if all my customers are in one country?
Less for distance, still for everything else: it absorbs spikes, blocks a large share of attack traffic, serves cached pages when your origin is slow, and handles certificates. Also, the search engines and partners that index and link to you are not all in your country.
Is a CDN the same as hosting?
Traditionally no: hosting was the server that made the pages, the CDN cached them. For a static website the distinction disappears, because the finished pages live on the network and there is no server making them per visit. That is the setup we use by default.
Will a CDN make my dynamic website fast?
It helps with images, scripts and styles, which are the same for everyone. It cannot cache a page that is different for every visitor, so a slow server behind a CDN is still a slow server for those pages. The larger the static share of your site, the more a CDN helps.
Does a CDN cost a lot?
For a business website the usage is small and platforms include it. The cost question is usually about the platform choice as a whole rather than the CDN as a line item.
Sources
- Cloudflare Learning Center: What is a CDN? (accessed 2026-09-11)
- Google web.dev: Web Vitals (accessed 2026-09-11)