A CDN, or Content Delivery Network, is a system of servers spread across multiple locations around the world. When you use a CDN, copies of your website's static content (images, CSS files, JavaScript, fonts, and videos) are stored on these servers so visitors download them from the nearest location rather than from your origin server.
For example, if your web server is in London and a visitor is in Sydney, without a CDN they'd be downloading everything from London. With a CDN, they'd pull those files from a server in Australia, which is much faster.
Popular CDN providers include Cloudflare, Amazon CloudFront, Fastly, and BunnyCDN. Many modern hosting providers include CDN services as part of their plans, and Cloudflare offers a generous free tier.
CDNs don't just cache static files. Many also offer additional benefits like DDoS protection, image optimisation, minification of code, and SSL certificate management.