Websites & SEO

What is a CDN?

A CDN (content delivery network) is a network of servers in many locations that keeps copies of a website's images, scripts and pages, and serves each visitor from the location closest to them.

How a CDN speeds things up

Distance adds delay. A visitor in Sydney loading files from a server in Virginia waits longer than one loading them from Sydney. A CDN caches files at edge locations, so most requests never travel far. Many CDNs also compress files, optimise images and absorb traffic spikes and some attacks.

Who needs one

Any site with visitors in more than one region benefits, and the entry tiers of providers such as Cloudflare cost nothing. The main thing to get right is caching rules: pages that change often, carts and logged-in areas must not be cached as if they were static.

Questions, answered

It helps with distance and file delivery, but it cannot fix a slow database, heavy page builders or huge unoptimised images. Those need fixing at the source.

Not for most sites. The CDN sits in front of your hosting. Fully static sites are the exception: they can be served entirely from a CDN.

By the Stegnor team · Updated