GOJI
All terms
WebsitesReviewed by Mark S.

What is a CDN?

Content Delivery Network

A CDN (content delivery network) is a network of servers spread across many locations that stores copies of a website's files and serves each visitor from the location nearest to them. That makes pages load faster, keeps the site up during traffic spikes and blocks some attacks before they reach your main server.

Distance adds delay. If your site lives on a server in the United States, every visitor in Perth waits for data to travel to the other side of the world and back, and the wait adds up with every image and script. A CDN caches your site's files at edge locations around the world, so that Perth visitor is served from somewhere nearby. Faster loading helps conversions and improves Core Web Vitals scores such as Largest Contentful Paint, which Google uses as part of its page experience signals.

CDNs also absorb sudden surges in traffic, filter out much of the hostile automated traffic on the internet and usually handle HTTPS certificates at the edge. Many modern web hosting platforms include a CDN by default, so for most businesses the job is checking that it's switched on and configured well. Sites from our website development work are served through a CDN as standard.

For example, a Melbourne skincare brand selling to customers in Australia, New Zealand and the UK might find its product pages load quickly at home but drag in London. Putting the store behind a CDN means UK shoppers get pages and images from a European location, and the home page holds up when a newsletter goes out and thousands of people click at once.

How does a CDN work?

A CDN works by copying your site's files, such as images, stylesheets, scripts and often whole pages, to servers in many locations called edge servers or points of presence. When a visitor requests a page, the CDN routes them to the closest edge server, which sends its cached copy. If that server doesn't have the file yet, it fetches it from your main server (the origin), stores it and serves it straight away to the next visitor.

What is a CDN, with an example?

Netflix is a useful example: it stores copies of popular shows on servers close to viewers, including inside internet providers' networks, so streams start quickly instead of all travelling from one central location. On a smaller scale, an online store's product photos might be served from a Sydney edge server to Sydney shoppers and from a Singapore one to customers in Asia. Either way, the CDN shortens the distance data has to travel.

What are some popular CDN providers?

Widely used CDN providers include Cloudflare, Akamai, Amazon CloudFront, Fastly and Google Cloud CDN. Many hosting platforms, such as Vercel, Netlify, Webflow and Shopify, come with a CDN built in, so you may already be using one. The best choice depends on your platform, budget and where your visitors are.

Does Google use a CDN?

Yes, Google runs its own global network of edge locations to serve services like Search, YouTube and Gmail quickly, and it sells a CDN to other businesses as Google Cloud CDN. Its Google Global Cache service also places servers inside internet providers' networks, mainly for YouTube video. That network is a large part of why Google's own pages load quickly almost anywhere.

What is the difference between DNS and CDN?

DNS translates a domain name into the address of the server that should answer, while a CDN is the network of servers that actually delivers your content from locations near the visitor. They work together: when you use a CDN, your DNS usually points your domain at the CDN, which then decides which edge server responds. DNS is like looking up the address, and the CDN is the nearby warehouse that ships the goods.

Is Cloudflare just a CDN?

No, Cloudflare started with CDN and security services but now offers much more, including DNS, DDoS protection, a web application firewall, domain registration and platforms for running code and hosting sites at the edge, such as Cloudflare Workers. Many businesses use it mainly as a CDN and security layer in front of their existing hosting. Its product range changes often, so check what's included in each plan.