GTM Engineering term, automation and APIs

Content Delivery Network (CDN)

A content delivery network (CDN) is a network of servers around the world that stores copies of a website's files and serves each visitor from the closest location, so pages load faster.

Also called: CDN, content delivery network, CDNs, edge network, content distribution network

Content Delivery Network (CDN) sits under every stage: it's part of the data and systems the whole funnel runs on, near related terms like Page Speed, Core Web Vitals and Largest Contentful Paint (LCP) (the blue squares).

A content delivery network, or CDN, is a network of servers spread around the world that store copies of your website's files. When someone visits, the CDN serves the page from the location closest to them instead of from one origin server. Pages load faster, the origin handles less traffic, and the site stays up under spikes. Most modern hosting includes one.

How it works

Your website lives on an origin server. Without a CDN, a visitor in Sydney requests every file from a server in Virginia, and each round trip adds delay. With a CDN, the request goes to a nearby edge server instead.

The core mechanics:

  • Edge locations: data centers in many cities, each holding cached copies of your files.
  • Caching: the first visitor near an edge triggers a fetch from the origin. The edge keeps a copy and serves it to later visitors until it expires.
  • Cache rules: headers set how long each file stays cached. Images and scripts can cache for a long time. Pricing pages and logged-in views need short times or no cache.
  • Purging: you can clear cached copies after an update so visitors see the new version.
  • Extras: most CDNs also handle the SSL certificate, compress files, resize images and absorb some attacks.

You connect a CDN by pointing a DNS record at it or by hosting on a platform that includes one. Sites built with static site generation benefit most, because whole pages are prebuilt files that cache perfectly.

Example

A B2B company hosts its site on a single server in the US. A third of its traffic comes from Europe and Asia-Pacific (all numbers hypothetical).

Visitor location Load time without CDN Load time with CDN
New York 1.4 s 1.1 s
London 2.6 s 1.2 s
Sydney 4.1 s 1.3 s

After the switch, largest contentful paint for international visitors drops below the commonly cited "good" threshold. Demo form starts from Asia-Pacific rise, likely because fewer people bounce before the page renders. The origin server also stops crashing during webinar launches, since the CDN absorbs the spike.

By company size

Small business: If your site runs on a hosted builder or a modern platform, a CDN is already on. Your job is not breaking it: compress large images and avoid stuffing pages with heavy third-party scripts that the CDN cannot speed up.

Mid-market: Marketing sites, docs and blogs move to platforms with built-in CDNs and automatic purging on deploy. A GTM engineer or web lead sets cache rules for forms, gated content and personalized pages so visitors never see stale or someone else's content.

Enterprise: CDNs handle global traffic, security rules, bot management and edge logic like geo-based redirects. Multiple teams touch the configuration, so change control and testing matter. Pages that personalize by account need careful cache design.

CDN vs web hosting

Hosting is where the original files live and where server-side code runs. A CDN is a distribution layer in front of it that copies and serves those files closer to visitors. Many modern platforms bundle both, which is why people blur them. If you self-host, you add the CDN yourself.

Why it matters for GTM teams

Site speed affects core web vitals, ad landing page quality, conversion rates and how patient buyers are with your demo form. A CDN is the cheapest speed win most sites have, and it is often already paid for. We'd confirm every marketing property sits behind one, set sensible cache rules, purge on deploy, and test page speed from the regions your buyers actually live in.

Common mistakes

  • Caching pages that include personalized or logged-in content.
  • Never purging after updates, so pricing changes take days to appear.
  • Assuming a CDN fixes slow pages caused by huge images or heavy scripts.
  • Testing speed only from the office, near the origin server.
  • Pointing DNS at a CDN without checking forms and redirects still work.

FAQ

Do I need a CDN for a small website?

You probably already have one. Most modern website builders and hosting platforms include a CDN by default. If you run your own server, adding one is usually cheap or free at small scale and helps with speed, uptime and basic attack protection.

Does a CDN help SEO?

Indirectly. A CDN can make pages load faster for visitors far from your server, and page experience is one of many signals search engines consider. It will not fix thin content or poor links, but slow pages can hold back good content.

Why is my website still showing old content after an update?

The CDN is likely serving a cached copy until it expires. Most CDNs let you purge the cache for one page or the whole site, and modern hosting platforms often purge automatically on deploy. Shorter cache times on frequently edited pages reduce the problem.

See all automation and APIs terms ↳

Used in these articles