Skip to content
VR Web Devs

What is a CDN, and why does it make your site faster?

A CDN keeps copies of your website in many places around the world, so each visitor is served from somewhere nearby. Here's how it works in plain words, why it makes sites faster and more reliable, and whether a small business needs one.

VR Web Devs4 min read
A row of small neighbourhood shop counters stocked with the same goods, seen along a quiet street

Imagine your sweet shop is famous, and people from across the country want your kaju katli. If every order had to come from your one shop in Faridabad, customers far away would wait a long time. Now imagine you had small counters in every major city, each stocked with the same sweets. Everyone would be served from somewhere close by.

That, in simple terms, is what a CDN does for a website. This post explains how it works and why it matters, even for a small local business.

What CDN stands for

CDN stands for Content Delivery Network. It's a network of servers in many locations, often in dozens of cities around the world. Each one keeps copies of your website's files: images, styles, scripts and often the pages themselves.

When a visitor opens your website, the CDN serves the files from the location closest to them, instead of from your one main server.

Why distance matters

Information on the internet travels fast, but not instantly. Every request from a visitor's phone to a server and back takes time, and the further away the server, the longer it takes. A page usually needs many such requests: the page itself, the images, the fonts, the code.

Those small delays add up. Serving from nearby makes each one shorter, so the whole page appears sooner. See how a slow website quietly loses customers.

What a CDN does for your website

Faster loading

Files arrive from nearby, so pages load faster, especially images. It helps the main loading measure in Core Web Vitals.

Handles busy moments

If many people visit at once, for example when a festival offer is shared widely on WhatsApp, the CDN spreads the load across many servers, so your main server isn't overwhelmed.

More reliable

If one location has a problem, others can take over. Your site is less likely to go down.

Extra protection

Many CDNs also help protect websites against some kinds of attacks, such as floods of fake traffic designed to knock a site offline.

Does a local business need one?

It's a fair question. If most of your customers are in one city, does it matter where your website is served from?

It can, for a few reasons:

  • Your hosting may be far away. Your website's main server could be in another country. A CDN brings it closer to your actual customers.
  • Customers travel and share. Relatives abroad order gifts. People search while travelling. Overseas customers find you online.
  • It costs little or nothing. Many hosting plans include a CDN, and some CDNs offer free plans for small sites.
  • Every bit of speed helps on mobile data.

Caching: the idea behind it

The word you'll hear alongside CDN is caching. A cache is a saved copy kept ready so it doesn't have to be fetched or built again. CDNs cache your files in each location.

Caching has one catch: when you update your website, the old copies need to be refreshed. Good setups handle this automatically, or keep copies only for a short time so changes appear quickly. If you've ever updated your website and still seen the old version for a while, caching is usually why.

A real-world picture

Say your website's main server is in Europe, and a customer in Faridabad opens your home page on mobile data. Without a CDN, every image and file travels from Europe and back. With a CDN that has a location in or near India, most of those files come from much closer. The customer doesn't know any of this. They simply notice that your page appeared quickly.

What a CDN can't fix

A CDN delivers your files faster. It can't make heavy files light. If your home page has a huge uncompressed photo and lots of unnecessary code, a CDN helps a little, but the real fix is lighter images and leaner pages. See WebP and AVIF and Next.js explained.

How to tell whether your site uses one

The simplest way is to ask whoever looks after your hosting. Your hosting control panel may also show a CDN setting. If you run your site through PageSpeed Insights and see a slow initial server response, a CDN or better hosting may help.

How we use it

We host websites on Hostinger, with HTTPS and a global CDN. Because pages are prepared in advance with Next.js, they can be served straight from the CDN, quickly, wherever the visitor is. We set the cache carefully so updates appear within minutes. See the full list of tools on how we build, and what's included in hosting and care on our maintenance plans.

In short

  • A CDN keeps copies of your website in many places and serves each visitor from somewhere nearby.
  • It makes pages load faster, copes with busy moments and makes your site more reliable.
  • Many hosting plans include one; make sure yours is switched on, and keep your pages light too.
  • A laptop on a desk showing four green circular score gaugesGuide
    Performance and tech3 min read

    What is Google Lighthouse, and what do its four scores mean?

    Lighthouse is Google's free tool for checking a website's quality. Here's what its four scores (Performance, Accessibility, Best Practices and SEO) actually measure, and why they matter to a business.

    Read the guide
  • A young man tapping on his phone with a relaxed smile in a bright, calm room
    Performance and tech4 min read

    Core Web Vitals explained for business owners

    Core Web Vitals are Google's three measures of how a web page feels to real visitors: how fast it loads, how quickly it responds and how steady it stays. Here's what each one means, in plain words, and why it matters for a small business.

    Read the post