Why distance still matters online
A web page feels instant, but every file in it, from the text to each image, has to travel from a server to the visitor's screen. Data moves fast, but not infinitely fast, and it passes through many network hops on the way. A visitor in Luleå loading a site from a server in another country waits a little longer for every file than a visitor sitting next to that server. On a page with dozens of files, the small waits add up.
The server itself can also become the bottleneck. A single machine can only answer so many visitors at once. If a campaign or a news mention sends a sudden wave of traffic, it may slow to a crawl or stop answering altogether.
What a CDN does
A CDN, or content delivery network, solves both problems by keeping copies of a site's files on many servers spread across the world. These servers are often called edge servers, because they sit at the edge of the network, close to where people are.
The company's own server is called the origin. It holds the original version of the site. When a visitor asks for a page, the request goes to the nearest edge server instead of the origin. If that edge server already has a fresh copy of the file, it sends it right away. If not, it fetches the file from the origin once, keeps a copy and serves every later visitor in that region from the copy.
The result is shorter trips for visitors and far fewer requests reaching the origin, which can then spend its effort on the work only it can do, such as handling orders or logins.
Caching, and how updates reach visitors
Keeping copies is called caching. Each file carries instructions about how long a copy may be kept before the edge server must check with the origin again. Logos and style files that rarely change can be cached for a long time. A page showing stock levels or prices may be cached for a very short time, or not at all.
This explains a common surprise: you change something on the website and it does not show up right away. The edge servers are still serving the old copy. Most CDNs offer a purge function that clears the copies on demand, and modern website tools often do this automatically when you publish. Getting these settings right is most of the craft of running a CDN well. Cache too little and the benefit shrinks. Cache too much, or the wrong things, and visitors see outdated content.
More than speed
Many CDNs also act as a shield. Because all traffic passes through them first, they can absorb and filter attacks such as DDoS attacks, where huge numbers of fake requests try to knock a site offline. They can block known bad traffic, add a web application firewall that stops common hacking attempts and manage the certificates that put the padlock in the browser's address bar.
Some CDNs also let companies run small pieces of code at the edge, close to the visitor, for tasks such as redirects or simple personalization. And many give a clear view of traffic: where visitors come from, which files are requested most and what kind of automated visitors, including AI crawlers, are reading the site. Several CDNs now let site owners decide which AI crawlers may access their pages.
Limits to know
A CDN cannot fix a slow site on its own. If pages are heavy with huge images and too much code, a CDN delivers them from closer by, but they are still heavy. Personal content, such as a logged-in customer's order history, usually cannot be cached and still has to come from the origin.
Configuration mistakes can also cause real problems. A wrongly cached page can show one visitor's information to another, or keep an old price visible after it changed. And because so much traffic flows through a few large CDN providers, an outage at one of them can take many unrelated sites down at the same time. That is rare, but it is worth knowing which provider your site depends on.
What it means for a small business
Most small business websites already use a CDN without anyone choosing it. Common website builders and hosting services include one by default, and free plans from CDN providers cover the needs of a typical company site. The practical work is less about buying one and more about checking that it is switched on and set up sensibly.
Three things are worth checking. First, that images and other static files are cached, so the site loads quickly on mobile phones far from the server. Fast pages help visitors and are one of many signals search engines use. Second, that publishing a change clears the old copies, so customers never see outdated prices or opening hours. Third, that the CDN's settings for bots match your wishes: if you want AI assistants to find and recommend your business, make sure their crawlers are not blocked by default.