Website CDN title card beside a flat illustration of one browser window with a scarlet button, with a long curving trail of grey dots arcing over the window and trailing away down its right-hand side into the distance

A website CDN earns its place when your visitors sit a long way from your server, or when your traffic arrives in bursts your host cannot absorb. If your buyers are in Malaysia and your site is hosted in Malaysia or Singapore, a content delivery network wins you little and costs you a new moving part, and the money usually buys more somewhere else.

The pages that come up for “website CDN” mostly explain what one is. That is the easy half. The harder question is whether yours is the kind of site that gets something back, and the answer turns on two things you can check this afternoon: where your visitors are, and whether your pages are slow for everyone or only for people far away.

What does a CDN actually do to a page load?

A content delivery network keeps copies of your files on servers spread around the world and answers each visitor from the nearest one. Three costs shrink as a result: the time to open a connection, the distance a cached file travels, and the number of requests your own server has to handle at all. Nothing about the page itself changes.

Google’s Chrome team documents the mechanism plainly in its guide to content delivery networks and web performance. “CDN servers are located closer to users than origin servers”, and “terminating the new connection as close to the user as possible eliminates unnecessary connection setup costs”. On the files themselves: “Caching resources on a CDN’s servers eliminates the need for a request to travel all the way to the origin.”

That last sentence contains the catch. The saving applies to what the network already holds a copy of, so a request for something uncached still travels to your own server and still waits for it, with the CDN’s hop on top. The same guide notes that “CDNs can also improve the delivery of uncacheable content”, because the connection terminates nearby, but the gain is far smaller than the one people picture when they buy one.

The measure of whether it is working has a name. The guide defines it: “Cache hit ratio is defined as the number of cache hits divided by the number of total requests during a given time interval”, and sets the target at “A CHR of 90% is a good goal for most sites.” A WordPress site passing images through a CDN while serving every page from the origin sits nowhere near that, which is the usual state of a plugin switched on and left alone.

Website CDN diagram headed WHAT A CDN SHORTENS with four black-outlined rows reading Connection set-up, Cached images and scripts and Cached pages, and a fourth row drawn in scarlet reading Anything it cannot cache, above a line reading That part still travels to your server
A wide diagram headed ONE REQUEST, TWO ROUTES with an underlined heading Found at the edge above the labels Nearest server answers, No trip to your host and Fast, and a scarlet vertical line, then a scarlet heading Not found at the edge above On to your origin, Your host answers and Only then cached

Does a CDN help if all your customers are in Malaysia?

Not much, if your server is also in this region. The gain from a CDN is the distance it removes, so a visitor in Penang loading a site hosted in Kuala Lumpur has almost no distance to remove. The same visitor loading a site hosted in Frankfurt or Dallas has a great deal, and that is the case worth paying to fix.

Your situationWhat a CDN changesWorth buying first?
Buyers in Malaysia, host in Malaysia or SingaporeLittle; the trip is already shortNo
Buyers in Malaysia, host in Europe or the United StatesRemoves most of the distanceYes
Buyers across Southeast Asia or further afieldEvens out the slowest marketsYes
Launches, Raya promotions, anything that spikesAbsorbs the burst instead of your hostYes
Pages heavy with uncompressed imagesDelivers the same weight from closer byNo, fix the weight

Check where your server is before assuming anything, because a Malaysian hosting company can sell you space on hardware in another country. Your host’s control panel names the data centre, and so does any server-location lookup. The burst is the other case: a promotion sent to a WhatsApp group arrives as a few hundred requests inside a minute, which shared hosting handles badly and a cache absorbs without touching your host.

A square diagram headed WHEN IT PAYS with five boxes pairing a situation with a verdict: Buyers and server both in this region with Little to gain, Buyers overseas with A real gain, Traffic arrives in bursts with It protects your host, Images are the problem with Fix the images first, and a scarlet box pairing Every request is slow with A CDN hides this, it does not fix it

How do you tell distance from a slow server?

Load the same page from two places and compare the first byte. If a visitor nearby gets a fast response and one far away waits, the problem is distance and a CDN addresses it. If both wait, the problem is your origin, and putting a network in front of it hides the symptom on cached pages while leaving everything else exactly as slow.

There is a published number for this. web.dev’s reference on Time to First Byte, by Barry Pollard and Jeremy Wagner, sets the bar: “Good TTFB values are 0.8 seconds or less, and poor values are greater than 1.8 seconds.” Time to First Byte is the wait before the first byte of the page arrives, so it is the part of the load a CDN can touch and the part your hosting decides.

Write both figures down before changing anything. A server returning 1.5 seconds to everyone is not a distance problem; that is the kind of result that points at your hosting, and no amount of edge caching improves the pages a logged-in customer or a form submission waits on.

What will a CDN not fix?

A CDN delivers what you give it faster. It does not make it smaller. Oversized images, a theme loading a dozen stylesheets, plugins injecting scripts into every page, a slow database query behind a product filter: every one of those costs the same after the move, and the ones that cannot be cached cost slightly more.

  • Image weight. A 2 MB photograph is 2 MB at the edge too. Compression and correct dimensions remove most of it, and cost nothing per month.
  • Script and plugin bloat. The browser still parses and runs everything the page loads, wherever it came from.
  • Slow queries and server-side work. Anything generated per visitor is generated by your origin on every request.
  • Logged-in and checkout pages. These are the pages a buyer actually waits on, and they are the ones a cache is least able to help.

This ordering matters because the cheap work is usually the work that moves the number. We have written about what a three-second load time is actually made of, and on most Malaysian SME sites the largest single item is images nobody compressed. Doing that first also tells you something: if the page is quick afterwards, the CDN question answers itself.

What does a CDN cost, and what does it add?

Most small business sites run on a provider’s free tier, so the cost lands somewhere other than the invoice: a second system between your visitors and your site, with a DNS change, a certificate to keep valid, a cache that can serve something stale and one more place to look when a page misbehaves. Price scales with traffic, bandwidth and the extras you switch on.

Five drivers set the price: data served each month, how many requests can be cached at all, whether you need a firewall or bot filtering, how many regions you want covered, and whether images are converted at the edge. A brochure site sits at the bottom of all five; a store running video promotions sits higher on every one.

The part that surprises people is how little a CDN is allowed to cache by default. RFC 9111, the HTTP Caching standard published in June 2022, defines a shared cache as “a cache that stores responses for reuse by more than one user”, and the private directive “indicates that a shared cache MUST NOT store the response”. WordPress marks logged-in and cart responses that way for good reason, so a store’s most important pages stay uncached unless somebody configures otherwise, carefully.

Stale content is the other cost, and it is a people problem. Change a price and the old page keeps being served from the edge until the cache is cleared, so whoever edits the site has to know that the clear-cache button exists and when to press it. Otherwise the first report comes from a customer.

When is a website CDN worth adding?

Add one when the measurement says distance is costing you, or when your traffic arrives in bursts. Sort the two cheaper things first: compress the images and confirm your host returns a first byte inside 0.8 seconds. If the site is still slow for visitors far away after that, a CDN is the right next purchase rather than a precaution.

  • 1. Find out where your server is. Your host’s panel or a location lookup. This one fact decides most of the question.
  • 2. Measure Time to First Byte from two regions. Near your buyers, and far from your server. Keep both numbers.
  • 3. Fix image weight and obvious bloat. Then measure again. Plenty of sites stop here.
  • 4. If distance remains, start on a free tier. One provider, static files and pages first, nothing clever at the edge.
  • 5. Check the cache hit ratio after a fortnight. Under about 90%, the configuration is doing less than you think.
  • 6. Write down who clears the cache. Before the first price change, not after it.

The order matters more than the provider. Bought out of order, a CDN is a monthly line item that makes a slow site slightly faster while the page your customers actually wait on stays untouched.

Frequently asked questions

Is Cloudflare’s free plan enough for a small business website?

Usually, yes. A free tier from a reputable provider covers caching for static files and pages, a certificate and basic protection, which is the whole of what a brochure site or small store needs from a CDN. The paid tiers buy image handling at the edge, firewall rules, analytics and support response times. Start free, and upgrade when a specific need appears rather than on principle.

Will a CDN improve my Google rankings?

Only indirectly, and only if it makes your pages faster for real visitors. The Chrome team’s documentation says “sites should strive to have Largest Contentful Paint of 2.5 seconds or less”, measured at the 75th percentile of page loads. A CDN that moves that measurement helps; one caching a few images on an already-nearby server changes nothing Google can see, and speed is one input among many.

Can a CDN break my website?

It can, and the usual causes are caching a page that should never have been cached and a misconfigured DNS or certificate during the switch. Both are avoidable: move the site over outside business hours, test logged-in pages, the contact form and checkout immediately afterwards, and keep the previous DNS settings written down so the change can be reversed.

Where iRevamps fits

Plenty of sites do not need a content delivery network at all. What they need is their images compressed, a host that answers quickly and somebody watching the numbers month to month, which is what our website maintenance service covers. One thing to do this week: test your homepage from a region near your buyers and one far from your server, and keep the two Time to First Byte figures.

Chat on WhatsApp