A content delivery network (CDN) serves pages and files from servers near each visitor. See how it works and how it affects speed, Core Web Vitals and SEO.

On this page
Summary
Content Delivery Network (CDN) is a network of servers spread around the world that stores copies of a website's files and serves them from the location closest to each visitor. It shortens loading times, reduces the load on the origin server and absorbs traffic spikes.
Want to go further? Ask
A content delivery network (CDN) is a geographically distributed group of servers, called edge servers or points of presence (PoPs), that keep copies of a website's content and deliver them from the location nearest to each user. Instead of every request traveling to one origin server, images, scripts, stylesheets and often whole HTML pages are served from a nearby edge. The result is lower latency, faster page loads and less work for the origin server. Well-known providers include Cloudflare, Akamai, Fastly, Amazon CloudFront and Google Cloud CDN, and many hosting platforms offer one as an option.
A CDN sits between your origin server and your visitors. When someone requests a file, the CDN checks whether the nearest edge already holds a fresh copy in its cache. If it does (a cache hit), it answers at once. If not (a cache miss), it fetches the file from the origin, returns it and keeps a copy for the next visitors. According to web.dev's guide to content delivery networks, CDNs are best known for serving cached content, but they also speed up files that cannot be cached, because the connection is set up with a server close to the user.

Most CDNs take over the DNS records of the domain or of a subdomain. The domain resolves to the CDN network, which routes each visitor to the best edge, usually with anycast routing. This is why setting up a CDN often starts with changing name servers or adding a CNAME record.
Physical distance matters on the internet. A round trip between Paris and Sydney takes far longer than one between Paris and Frankfurt, and loading a page requires several round trips: the DNS lookup, the TCP and TLS handshakes, then each file request. By ending connections close to the user and serving cached files locally, a CDN removes most of that travel time.
What is cached, and for how long, is set by HTTP headers such as Cache-Control and by rules in the CDN dashboard. Static files such as images, fonts and scripts can often be cached for months, while HTML is usually cached for shorter periods or revalidated on each request. A typical header for a long-lived static file looks like this:
Cache-Control: public, max-age=31536000
Sorank's free HTTP headers checker shows the caching and compression headers of any URL, so you can see whether a page is served with the cache rules you expect.
A CDN does not rank a page on its own, but it improves signals that search engines measure. Google's documentation on Core Web Vitals describes three metrics: loading performance, interactivity and visual stability. Its good thresholds are a Largest Contentful Paint (LCP) within 2.5 seconds, an Interaction to Next Paint (INP) under 200 milliseconds and a Cumulative Layout Shift (CLS) under 0.1. Faster delivery of HTML, images and fonts usually improves the time to first byte and LCP, especially for visitors far from the origin server.
A CDN also improves availability. It absorbs traffic spikes and many denial-of-service attacks, and some CDNs can serve a cached copy of a page when the origin is down. Fewer server errors help crawlers reach your pages, which matters for large sites that depend on their crawl budget.
Modern CDNs do much more than store files. They handle TLS certificates and HTTP/2 or HTTP/3, compress text files with Brotli or Gzip, convert images to WebP or AVIF, and run small pieces of code at the edge to handle redirects, A/B tests or headers without touching the origin server.
Security is the other large feature set: web application firewalls, bot management, rate limiting and DDoS protection. These tools are useful, but they need care. An aggressive bot rule can block legitimate crawlers if it does not recognize them, including AI crawlers like GPTBot that read your pages for AI answers.
Keep URLs identical. The CDN should serve the same addresses as before, on the same domain, so that canonical tags, internal links and backlinks keep working. Serving images from a separate CDN hostname is fine, as long as those images stay crawlable and the hostname stays stable over time.
Then check the caching rules:
Measure the result with PageSpeed Insights before and after the change, then monitor crawl stats and server errors in Search Console for the following weeks. A drop in crawled pages or a rise in server errors is the first sign of a misconfiguration.
The most damaging mistake is blocking search engine and AI crawlers with bot protection or challenge pages. If Googlebot receives a challenge page instead of content, pages can drop out of results. Google notes that the Googlebot user agent is often spoofed, and explains in its documentation on Googlebot that a reverse DNS lookup on the request's source IP confirms a real Googlebot request. Verify crawlers this way before you block or allow them.
Other mistakes include caching outdated HTML for too long, serving the wrong language version from cache because the cache key ignores the language, and creating duplicate content when the CDN hostname serves the full site under another domain without a canonical tag.
For SEO, a CDN is one of the simplest ways to improve page speed for an international audience, stabilize Core Web Vitals and protect uptime. It matters most for sites with visitors on several continents, where the distance to the origin server adds the most delay. The Core Web Vitals gains are real only when the CDN keeps the URLs and the content stable.
For GEO, delivery speed and reliability matter when AI crawlers fetch pages, including the real-time retrieval that some assistants perform during a conversation. A page that answers quickly and consistently is easier for assistants such as ChatGPT or Perplexity to read and cite. A page that times out or returns a challenge is skipped.
A content delivery network caches your content on servers close to your visitors, which lowers latency, speeds up pages and absorbs traffic spikes. It does not replace good content or links, but it strengthens Core Web Vitals, availability and crawl reliability, as long as crawlers are allowed and URLs stay unchanged.
Sources
A CDN delivers a website's files from servers close to each visitor. It speeds up page loads, reduces the load on the origin server, absorbs traffic spikes and often adds security features such as DDoS protection.
Not strictly, but it helps. Faster delivery improves Core Web Vitals and Time to First Byte, especially for international visitors, and better uptime means more reliable crawling. Small local sites on fast hosting may see a smaller benefit.
Only when it is misconfigured. Blocking crawlers with bot protection, caching outdated pages, changing URLs or serving duplicate content on a CDN hostname can cause problems. With crawlers allowed and URLs unchanged, a CDN is neutral to positive.
