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.

3 minread 676words last updated

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

JobWhat it means for you
Serves copies close to visitorsFast pages worldwide, better Core Web Vitals on mobile
Absorbs traffic spikesA newsletter, a press mention or a campaign does not take the site down
Filters attack trafficFloods and many automated attacks are stopped at the network, not at your site
Manages certificatesHTTPS on every edge, renewed automatically
Caches when the origin is slow or downVisitors keep seeing pages even when something behind the network has a bad day
Optimises images and compressionSmaller 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?

Written by the CivSec S.M.A.R.T team

We build and run websites, software and AI systems for businesses. We write about what we see in that work, in plain language, and we update articles when things change.

Last checked . Spotted something outdated? Tell us.

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

  1. Cloudflare Learning Center: What is a CDN? (accessed 2026-09-11)
  2. Google web.dev: Web Vitals (accessed 2026-09-11)