A content delivery network, or CDN, is a system that delivers a publisher’s content through cooperating delivery nodes. For a developer, the useful question is what happens between a request for a file and the response that reaches the browser. A CDN adds a delivery layer to that journey. Understanding the layer helps you decide which files belong there and how to verify their behavior.
This article explains CDN architecture. Mirage CDN offers delivery for video, downloads, websites and APIs with manual onboarding. The specific configuration still needs to fit the response rules and client behavior of your workload.
Start with the origin and the delivery node
The origin is the authoritative source for a resource. In an ordinary static website, that might be the HTTP server holding the published HTML, stylesheets, and images. A delivery node receives requests on the publisher’s behalf and obtains the content it needs. The CDN terminology in RFC 6707 separates request routing, content distribution, and delivery into distinct responsibilities.
That separation matters when drawing an architecture. A box labelled CDN is hiding several decisions: which node receives the request, where the requested file comes from, and which response the node may send. Treat those decisions as separate questions during implementation review. A successful connection to a delivery node answers only the first part of the delivery problem.
For a hypothetical documentation site, begin with one public stylesheet and one public image. Write down their origin locations, public URLs, expected content types, and release identifiers. These become small, understandable fixtures for testing the delivery layer before moving a larger asset collection.
Understand what a cache actually reuses
An HTTP cache stores responses and decides whether they can satisfy later requests. RFC 9111 distinguishes a shared cache, which can serve multiple users, from a private cache associated with one user. A CDN cache and a browser cache therefore have different responsibilities, even when both hold the same file.
A stored response must match the request and satisfy the applicable reuse rules. Freshness is one part of that decision. Request headers selected by Vary can also affect which representation matches. no-cache permits storage but requires successful validation before reuse; no-store prohibits storage under the directive’s rules. A response being present on disk does not, by itself, make it safe to serve.
For implementation details, read HTTP caching headers explained. Keep your initial configuration explicit and test the headers your origin actually sends, including error responses. Review the behavior of each asset class rather than assigning one policy to every URL on the application.
Follow one request through the system
Imagine a visitor requesting the documentation stylesheet. The request reaches a delivery node. If that node has a usable stored response, the delivery can use it. Otherwise the delivery system needs to acquire the content through its configured path. The distinction is useful, but a simple hit or miss label cannot describe every possible forwarding decision.
RFC 9211 defines Cache-Status for communicating cache handling information. Its parameters can distinguish a response satisfied by a cache from one that required forwarding, and describe reasons for forwarding. Support and exposure depend on the implementation. Do not infer an undocumented diagnostic header’s meaning from its name.
A practical test record should include the URL, response status, expected file checksum, and relevant response headers. Compare the first retrieval with a repeat retrieval. Label those observations as evidence from the tested configuration. Avoid converting one successful repeat request into a conclusion about every node or every future deployment.
Keep HTTP correctness in the picture
CDN delivery still uses HTTP semantics. A status code describes the outcome of a request; a content type describes the representation. Conditional requests can test whether a representation changed, and range requests can request portions of a representation. RFC 9110 defines these mechanisms independently of a particular CDN product.
For a downloadable archive, test a complete retrieval and a partial retrieval if your delivery scope includes ranges. Compare the returned bytes with the intended release. For stylesheets, verify both the content type and the file contents. A response arriving successfully is insufficient if it contains the wrong revision or an HTML error document.
Decide what belongs in the first integration
Use a small inventory with four columns: asset family, publication process, expected audience, and update method. Public versioned images and build assets make clear starting points. Personalized pages require a separate review of identity and cache isolation; their presence in the application should never silently expand a static-file integration.
Consider a release in which a page references a newly named stylesheet. Your rehearsal should verify that the new file is retrievable before the page references it, and that a rollback can still retrieve the previous file. This is a proposed release discipline, not a protocol requirement or an assurance about any service.
Next, compare pull CDN and push CDN workflows to understand how content reaches the delivery system. Read how anycast routing works for the separate network-routing layer. Keeping acquisition, caching, routing, and release verification distinct makes the system easier to reason about when a request behaves unexpectedly.
Sources
- RFC 6707: CDN terminology and architecture
- RFC 9111: HTTP caching
- RFC 9211: The Cache-Status response field
- RFC 9110: HTTP semantics
This guide explains technical concepts. For your delivery setup, review the documentation and request an account from our team.
Read the integration docs · Explore more CDN guides