How does a CDN make my website load faster?
A CDN keeps a copy of a file near the visitor, so the request does not travel all the way to your origin server. web.dev says some CDNs use a tiered approach: servers close to users, called edge caches, are backed by central servers with higher cache hit ratios. If an edge cache cannot find a file, it asks a central one [2].
web.dev also says Time to First Byte can be improved significantly by adding a CDN, and calls it an important metric for diagnosing problems with Largest Contentful Paint, one of the Core Web Vitals [2]. The page starts arriving sooner, so everything after it can start sooner too.
A Singapore shop hosted in the US
Say your site is hosted in the United States and a customer opens it in Singapore. Without a CDN, every image comes from the US. With one, the first visitor in Singapore pulls the file from your origin and the CDN keeps a copy. The next visitors get that copy from a nearby server.
What does a CDN cache, and what does it skip?
Static files such as images, stylesheets and scripts are the usual contents. Cloudflare's documentation says it caches by file extension, not by content type, and that the Cloudflare CDN does not cache HTML or JSON by default [3]. It does cache a site's robots.txt by default [3].
web.dev notes that CDNs can also improve delivery of content that cannot be cached, and that, generally, the more of your site a CDN delivers, the better [2].
How do I clear an old copy from a CDN?
CDNs use cache eviction to remove not-so-useful files on their own. Site owners can also purge a file to remove it on demand [2]. If you change a logo and visitors still see the old one, purging that file, or renaming it, is the fix.
A CDN that sits in front of your site also changes where your domain points. That can be a CNAME record or a nameserver change, and it works alongside your SSL certificate and HTTPS settings.
Does a small Singapore website need a CDN?
Often it already has one. Some hosts include a CDN, so check your host's settings before adding another. A site whose visitors are mostly in Singapore and whose server is also in Singapore gains less than one hosted abroad. A CDN is most useful when your server is far from your visitors. web.dev also says CDNs are well suited to handling traffic spikes [2].
Questions people ask
Is a CDN the same as web hosting?
No. Hosting is where your website lives, called the origin. A CDN is a network of servers that stores copies of your files and serves them from places close to visitors [1][2].
Does a CDN cache my HTML pages?
On Cloudflare, not by default. Its documentation says the Cloudflare CDN does not cache HTML or JSON by default, and it decides what to cache by file extension [3].
Does a CDN improve SEO?
It can help indirectly. web.dev says a CDN can significantly improve Time to First Byte, which it calls an important metric for diagnosing issues with Largest Contentful Paint [2].
Pages that link here
A record, CNAME record, Core Web Vitals, LCP, PageSpeed Insights, SSL certificate, Web application firewall, Web hosting, WebP
Blog posts that use this term
See also
- Web hosting Web hosting is renting space on a web server that stays connected to the internet, so your website's files can be sent to anyone who asks.
- DNS DNS is the internet's address book: it turns a domain name like example.com into the number a computer needs to find your website or mail server.
- Core Web Vitals Core Web Vitals are three measurements of how fast, responsive and stable a web page feels to real visitors: LCP, INP and CLS.
- LCP LCP, or Largest Contentful Paint, is how long a page takes to show its biggest image, text block or video after a visitor starts loading it.
- SSL certificate An SSL certificate is a digital file that proves your website is who it claims to be and lets browsers connect to it over encrypted HTTPS.
- CNAME record A CNAME record is a DNS entry that makes one domain name an alias of another, so www.yoursite.com can follow wherever another name points.
References
- CDN (Glossary), MDN Web Docs. Read 27/11/2026.
A CDN (Content Delivery Network) is a group of servers spread out over many locations.
- Content delivery networks (CDNs), web.dev (Google). Read 27/11/2026.
Time to First Byte (TTFB) can be significantly improved when introducing a CDN into your website's server-side architecture.
- Default cache behavior, Cloudflare Docs. Read 27/11/2026.
The Cloudflare CDN does not cache HTML or JSON by default.