What Is a CDN?

Published
14 min read

What Is a Content Delivery Network?

A content delivery network, or CDN, is a distributed group of edge servers that delivers website resources from locations closer to visitors instead of making every request travel to one origin server.

The CDN sits between browsers and the origin. It receives requests, applies routing and security rules, and may serve a cached response from an edge location. When the edge has no eligible copy, it retrieves the response from the origin, returns it to the visitor and may store it for later requests.

CDNs commonly deliver images, CSS, JavaScript, fonts, video and public HTML. They can also terminate TLS, compress responses, negotiate modern protocols and absorb traffic spikes. A CDN does not automatically make a site fast or search-friendly: its value depends on correct cache policies, stable routing and responses that remain equivalent across locations.

  1. Identify the exact page, asset, entity or relationship described in this section.
  2. Inspect the live implementation and retain the observed evidence.
  3. Compare the observation with the intended meaning and its primary specification.
  4. Correct any mismatch, then retest the live result.
  5. Record the accountable owner and review date.
What Is a Content Delivery Network? reference table
TermMeaningWhy it matters
OriginAuthoritative application or storageCreates or stores the source response
EdgeRegional CDN serverServes visitors with less distance
PoPPhysical point of presenceHouses edge infrastructure
Cache hitResponse served from edge storageAvoids an origin round trip
Cache missEdge must contact originAdds origin work and latency
  • A CDN is different from a web host.
  • Not every response should be cached.
  • The public edge response is the one users experience.

Primary specification: MDN content delivery network reference.

A CDN is a delivery layer whose SEO value comes from faster, reliable and consistent public responses.

How Does a CDN Work?

A CDN works by routing a request to a suitable edge, matching it against an edge cache key, and serving a stored response or fetching a fresh response from the origin.

DNS and anycast routing commonly help direct a visitor to a nearby or healthy edge. The edge evaluates the hostname, path, query parameters, request headers and configured rules. If a fresh matching object exists, the edge returns it. Otherwise it forwards the request upstream and waits for the origin response.

The edge then decides whether that response can be stored, for how long and under which key. Subsequent visitors may receive the same public object until it expires, is purged or is replaced. Dynamic acceleration can still improve uncached requests through connection reuse, optimized routing and protocol handling, although the origin remains involved.

  • The exact page, asset, entity or relationship covered by this section
  • The live implementation rather than an editor-only preview
  • The primary specification or first-party record defining the expected behavior
  • The validation result, accountable owner and review date
How Does a CDN Work? reference table
StageCDN decisionPossible result
RoutingChoose a healthy edgeShorter network path
Key lookupFind matching objectHit, miss or bypass
FreshnessCheck cache policyServe or revalidate
Origin fetchRequest upstream responseStore or pass through
DeliveryApply protocol and compressionReturn public response
  1. The browser resolves the hostname.
  2. The request reaches an edge location.
  3. The edge evaluates rules and its cache.
  4. A cached or origin response is returned.

The practical request flow is route, match, serve or fetch, then store only when the response is safe to reuse.

CDN vs Browser Cache and Web Hosting

A CDN shares delivery infrastructure across visitors, a browser cache reuses responses on one visitor’s device, and web hosting runs or stores the origin website.

Browser caching can eliminate a repeat transfer for the same person, while CDN caching can eliminate repeated origin work across many people. Hosting remains responsible for the canonical application, files and data. These layers complement one another but have different privacy boundaries and invalidation controls.

A long browser lifetime can keep an asset local even after the CDN has been purged. A CDN can keep serving an object even when the origin was updated. A fast host can reduce miss latency but cannot reproduce the geographic reach of a broad edge network. Teams should document which layer owns freshness for each resource class.

  1. Identify the exact page, asset, entity or relationship described in this section.
  2. Inspect the live implementation and retain the observed evidence.
  3. Compare the observation with the intended meaning and its primary specification.
  4. Correct any mismatch, then retest the live result.
  5. Record the accountable owner and review date.
CDN vs Browser Cache and Web Hosting reference table
LayerLocationReused forPrimary control
Browser cacheVisitor deviceOne browser profileResponse headers
CDN cacheDistributed edgesMany eligible visitorsEdge rules and headers
Web hostOrigin regionSource requestsApplication and server
Application cacheOrigin servicesComputed data or pagesFramework or data layer
  • Purging a CDN does not clear browser storage.
  • Private responses must not become shared objects.
  • Origin performance still matters on misses.

Treat hosting, edge caching and browser caching as separate layers with coordinated but explicit policies.

How Can a CDN Help SEO?

A CDN can support SEO by reducing delivery latency, improving resilience and making shared assets faster for geographically distributed visitors, but it cannot compensate for weak content or broken technical signals.

Shorter network paths can improve response and asset delivery, especially when audiences are far from the origin. Edge caching may reduce load on the application during traffic peaks, allowing important pages to remain available. Consistent compression, HTTP protocol support and image delivery can also support page experience.

The benefit is indirect and must be measured on real pages. A cached image may help Largest Contentful Paint, yet slow origin HTML can still delay discovery of that image. A fast edge cannot repair an incorrect canonical, thin page or blocked crawl. Evaluate CDN work alongside Time to First Byte, Largest Contentful Paint and browser caching.

  • The exact page, asset, entity or relationship covered by this section
  • The live implementation rather than an editor-only preview
  • The primary specification or first-party record defining the expected behavior
  • The validation result, accountable owner and review date
How Can a CDN Help SEO? reference table
Potential benefitMechanismEvidence to inspect
Lower latencyNearby edge serves responseRegional field and lab timing
Origin protectionHits avoid application workHit ratio and origin load
AvailabilityTraffic spreads across networkError rate during peaks
Asset efficiencyCompression and protocol supportTransferred bytes and timing
Global consistencyCommon delivery rulesHeaders and content by region
  1. Identify high-value regions and templates.
  2. Measure the current origin path.
  3. Enable one controlled delivery improvement.
  4. Compare real-user and edge evidence.

A CDN supports search performance when it improves real delivery without changing the meaning or accessibility of the page.

What Should a CDN Cache?

A CDN should cache public responses that are safe to reuse and have a clear freshness strategy, while personalized, sensitive or rapidly changing responses should bypass shared storage unless designed for it.

Fingerprint-named CSS and JavaScript, public fonts and versioned images are strong candidates for long edge lifetimes. Public HTML may use shorter caching, revalidation or controlled stale serving when the publishing model supports it. APIs require endpoint-specific decisions because one route may be public while another contains account data.

Cookies alone are not a complete safety policy. The cache key and bypass rules must distinguish logged-in state, locale, device variants and experiments when those factors alter the response. Avoid adding every request header to the key, because excessive variation destroys reuse and makes behavior harder to reason about.

  1. Identify the exact page, asset, entity or relationship described in this section.
  2. Inspect the live implementation and retain the observed evidence.
  3. Compare the observation with the intended meaning and its primary specification.
  4. Correct any mismatch, then retest the live result.
  5. Record the accountable owner and review date.
What Should a CDN Cache? reference table
ResourceTypical edge approachInvalidation
Hashed CSS/JSLong public lifetimeNew fingerprinted URL
Versioned imageLong public lifetimeNew URL or purge
Public HTMLShort lifetime or revalidationPurge and freshness rules
Account pageBypass shared cacheAlways origin/private delivery
Public API dataEndpoint-specific lifetimePurge, version or validate
Checkout responseNo shared storageOrigin-controlled response
  • Classify public and private responses first.
  • Set lifetimes from acceptable staleness.
  • Keep the cache key as small as correctness allows.

Cache by resource behavior and privacy boundary, not by file extension alone.

What CDN Cache Headers Matter?

The most important CDN headers define cacheability, freshness, variation, validators and the observed age or result of an edge response.

Cache-Control communicates storage and freshness rules. s-maxage can specify shared-cache freshness separately from browser max-age. Vary identifies request headers that change the representation. ETag and Last-Modified support validation when the edge or browser holds a stale object.

Age may reveal how long a response has lived in a shared cache. Provider-specific cache-status headers often label hits, misses, bypasses and revalidations. These diagnostic values are useful, but the final HTML, status, redirects and canonical signals must also be compared. A “HIT” is not success if it is the wrong response.

  • The exact page, asset, entity or relationship covered by this section
  • The live implementation rather than an editor-only preview
  • The primary specification or first-party record defining the expected behavior
  • The validation result, accountable owner and review date
What CDN Cache Headers Matter? reference table
Header or signalPurposeAudit question
Cache-ControlStorage and freshness policyIs shared reuse allowed intentionally?
s-maxageShared-cache lifetimeDoes edge freshness differ from browser freshness?
VaryRepresentation dimensionsDoes the key separate real variants?
ETagVersion validatorDoes revalidation behave consistently?
AgeObject residencyIs the edge serving an expected lifetime?
Cache statusProvider diagnosticAre hits, misses and bypasses explainable?
  1. Capture the public response headers.
  2. Repeat requests from more than one region.
  3. Compare hits, misses and bypasses.
  4. Validate the associated page content.

Read headers together with the delivered body and status so cache efficiency never hides content inconsistency.

What CDN SEO Problems Can Occur?

CDN SEO problems occur when edges serve stale, inconsistent, blocked or incorrectly redirected responses, or when cache keys mix pages that should remain separate.

A stale edge object can preserve an old canonical, title, internal link or status code after the origin changes. Incorrect rules may cache a redirect longer than intended or transform a temporary error into a persistent regional problem. Bot-management controls can challenge legitimate crawlers or monitoring systems, making availability look different by user agent or geography.

Query normalization can collapse distinct pages or fragment one resource into unnecessary variants. Country redirects may prevent a visitor or crawler from reaching the requested URL. Edge-generated HTML rewriting, image optimization and script injection can introduce markup differences. These failures are especially difficult because the origin may look correct during local testing.

  1. Identify the exact page, asset, entity or relationship described in this section.
  2. Inspect the live implementation and retain the observed evidence.
  3. Compare the observation with the intended meaning and its primary specification.
  4. Correct any mismatch, then retest the live result.
  5. Record the accountable owner and review date.
What CDN SEO Problems Can Occur? reference table
ProblemSEO or user symptomFirst check
Stale HTMLOld canonical or contentAge, TTL and purge history
Cached redirectWrong destination persistsStatus and location by region
Bot challengeCrawler receives block pageSecurity event and user-agent test
Bad cache keyWrong locale or variantKey inputs and Vary
Edge errorRegional 5xx or timeoutPoP and origin health
HTML transformationMarkup differs unexpectedlyCompare edge and origin bodies
  • Test status, headers and body together.
  • Compare multiple regions and user agents.
  • Preserve an origin-only diagnostic path.

The central CDN SEO risk is disagreement between the intended origin response and what the public edge actually delivers.

How Do You Audit a CDN for SEO?

Audit a CDN for SEO by sampling important URLs across regions and request states, comparing edge responses with the origin, and testing cache, purge, redirect and security behavior through a real deployment.

Build a representative set: homepage, category, content article, product page, static asset, redirect, 404 and any localized or personalized route. Capture DNS, TLS, status, redirect chain, headers, body hash and timing. Repeat requests to identify the cache lifecycle instead of drawing conclusions from one request.

Compare anonymous and authenticated states without exposing private data. Test desktop and mobile variants only where they genuinely differ. Purge or publish a controlled change and measure how quickly every edge returns the new response. Use logs and provider analytics to explain misses, bypasses, errors and unusually low hit ratios.

  • The exact page, asset, entity or relationship covered by this section
  • The live implementation rather than an editor-only preview
  • The primary specification or first-party record defining the expected behavior
  • The validation result, accountable owner and review date
How Do You Audit a CDN for SEO? reference table
Audit areaTestPass evidence
DNS and TLSResolve and connect by regionCorrect host and valid certificate
Response parityCompare origin and edgeExpected status, headers and body
Cache lifecycleRepeat then age requestExplainable hit and freshness
PurgePublish controlled updateEdges converge within policy
VariantsTest locale/session/deviceNo cross-variant leakage
ErrorsRequest missing and failing pathsCorrect 404/5xx handling
SecurityTest legitimate automated accessNo unintended challenge or block
  1. Choose revenue and traffic-critical URL types.
  2. Capture first and repeat requests.
  3. Compare edge regions with the origin.
  4. Test a real update and rollback.
  5. Prioritize correctness before hit ratio.

A credible CDN audit proves response correctness and update behavior, not just a high cache-hit percentage.