Every hosting type covered so far has one thing in common: your site lives on a server in one physical location. A CDN (content delivery network) addresses a real, physical consequence of that fact — distance costs time.
Data travels over real cables and real infrastructure, at a real, finite speed. A visitor in Kolkata loading a site hosted on a server in the United States genuinely waits longer for the first byte to arrive than a visitor physically near that server does — not because of anything wrong with the code, purely because of the physical distance the request and response have to travel, twice, round trip.
A CDN keeps copies of your content on servers spread across many physical locations worldwide — commonly called edge locations or points of presence. When someone visits your site, they are automatically served from whichever copy is physically nearest to them, rather than always reaching back to your one original server.
CDNs are most effective for content that does not change per visitor — images, CSS, JavaScript, fonts, and entire static sites, all covered in the static-hosting lesson earlier in this category. This is exactly why a static site is so naturally suited to CDN distribution: with nothing that needs to be computed per request, there is nothing stopping every edge location from holding an identical, ready-to-serve copy.
A CDN also absorbs a meaningful share of traffic before it ever reaches your actual server — genuinely useful during a sudden traffic spike, and a real, if partial, layer of protection against certain kinds of malicious traffic floods, since the origin server never sees most of it directly.
This connects directly to the SEO course's page-speed lesson: LCP (Largest Contentful Paint), one of the three Core Web Vitals, is measured from the moment a request starts — and physical distance to the server is one of the concrete, fixable things that affects it. A CDN is one of the most direct available fixes for a slow LCP caused by geography rather than code.
The next lesson covers the practical side: how a CDN actually gets put in front of existing hosting, and why it is very often free.