DEV Community

Muhammad Ikram Zafar
Muhammad Ikram Zafar

Posted on Edited on Originally published at muhammadikram.dev

What a CDN Does for Your Online Store (and Cloudflare vs Fastly vs CloudFront)

A Deloitte study for Google linked a 0.1-second faster mobile site to an 8.4% lift in retail conversions, and retail shoppers also spent 9.2% more. (It was a study of 37 brands commissioned by Google, so treat it as vendor research.)

A CDN (content delivery network) is how global brands buy that speed. It keeps copies of pages and images at edge locations near shoppers, takes load off your servers and blocks many attacks before they reach you.

What a CDN does with each request

  1. The shopper reaches the nearest edge: a data centre close to them, not your server.
  2. If the edge has a copy, it is served nearby. Images, scripts and pages travel a short distance.
  3. If there is no copy, there is one trip to your server. The edge fetches it once, then keeps a copy.

Four jobs a CDN does

  • Caches content at the edge
  • Cuts the distance to the shopper
  • Offloads your origin server
  • Blocks attacks at the edge

Do you need one yet?

Yes, now if you have:

  • Shoppers in several countries
  • Heavy images or video
  • Big sale days and campaigns

It can wait if you have:

  • One city and low traffic
  • Few images and few pages
  • A host that already includes one

Cloudflare vs Fastly vs CloudFront

Published Cloudflare Fastly CloudFront
Network 348 cities 622 Tbps capacity 750+ POPs
Headline claim 95% of users within 50 ms Under 150 ms mean purge 15 regional edge caches
Pricing Free tier, then usage Free tier, then usage Flat-rate plans from $0

These are figures from vendor pages, checked Sep 2026. Each vendor counts its network differently, so they don't rank one above another.

Test before you sign

  1. Trial on your real traffic for two weeks, in the countries you sell to.
  2. Measure the hit ratio: how much is served from the edge, not your server.
  3. Time a price-change purge. On Black Friday, a stale price is a support ticket.

Your turn

Which matters most to you in a CDN: speed, purge time or price? Pick one and discuss it with your tech or growth lead before your next vendor review.


Sources: Deloitte, "Milliseconds Make Millions" (commissioned by Google, 2020) · cloudflare.com/network · fastly.com/network-map · aws.amazon.com/cloudfront · Cloudflare Learning Center. Checked Sep 2026.

Originally published on muhammadikram.dev. I'm Muhammad Ikram Zafar, a web, app and CRM developer in Dubai. I build e-commerce stores and real estate CRM systems.

Top comments (0)