VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Hosting & embedding

How a video CDN delivers your video

Track a specific video request from the player through to the intermediate cache and learn which indicators truly indicate a cache hit.

Bright cables connect a video source through four blue nodes to screens, each showing the same recording.
A CDN can store copies of files or segments in distributed cache servers.Image: Vioneto · AI-generated illustration

A video CDN is a network of servers that delivers video files or segments to viewers. If a suitable copy is available at the serving node, it can respond directly. In the case of a cache miss, another cache or the origin server can take over. This becomes particularly interesting when you want to understand why a video clip's start time varies or why viewers after a switch experience different versions.

A segment en route to the player

Imagine a guide is delivered via HLS. The player reads the playlist and requests the first video segment. When the first request arrives at a specific cache node, the segment might need to be fetched from further along the network. If another player soon afterward requests the same object with the same cache assignment, the node can serve the cached copy. However, this does not necessarily apply to the playlist itself—it may be stored for a shorter time or follow different retention rules. CloudFront describes this principle for its own network; details such as cache assignment and response headers depend on the provider.

AWS: How CloudFront handles requests

Two comparable requests are monitored

  1. Open the network tab in the browser and start a public test video. Identify an actually loaded media file or a specific segment; do not confuse it with the thumbnail or the HTML page.
  2. Run the same request in a fresh browser profile under comparable conditions. Ensure the same quality level, the same URL, and optionally the same byte range, and verify that the browser actually sends the request. Do not include access tokens in your notes.
  3. Record response status, time until first byte, and optionally the provider's cache headers. The standardized Age header indicates the estimated age of a cached response. A positive value suggests caching; the absence or a zero-value entry alone does not determine whether caching has occurred.
  4. Repeat the playback from the network where the issue occurs. A single cache hit does not indicate whether the player starts quickly or if the video stalls later.

RFC 9111: HTTP Caching and Age

Old versions and slow connections should be examined separately

If the old version appears after a swap, first compare the currently loaded playlist and segment addresses. Version-specific addresses for new content or targeted invalidation after the host has documented the changes can help when unchanged URLs still point to outdated cache entries. If the correct version still loads slowly, check the selected bitrate, the network connection, device load, and playback performance in the player separately.

A cache node in a specific region also provides little information about the location of the original content or where processing occurs. If location is important for your selection, review the data flows individually using the provider's documentation.

When it comes to video hosting, storage location and delivery differ.

Systematically identify and eliminate playback jitter

Topics

Sources and further reading

  1. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowCloudFrontWorks.html
  2. https://www.rfc-editor.org/rfc/rfc9111.html