VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Why a protected video may stay in the browser cache

A frame or buffered segment can stay visible after sign-out. Use a fresh request to check what the server actually permits.

A dimming video window with stacked image cards faces off against a locked server.
An existing view and a newly requested video response are two different test scenarios. The illustration does not depict a measured system.Image: Vioneto · AI-generated illustration

After signing out, the player may still show a frame or play a buffered segment. To see what the server permits now, distinguish existing playback from a fresh request. Use a test video and account you are authorized to use.

What the three cache values mean

  • private: A browser can store a response subject to the other cache rules. An unqualified private directive prevents shared caches from storing it.
  • no-cache: A stored response must be successfully revalidated before reuse for a request.
  • no-store: Private and shared HTTP caches must not store the response. The application still controls access to the video.

This distinction follows the HTTP caching standard RFC 9111. It describes how responses are handled. However, whether a specific user is actually allowed to access the video must be determined separately by the application or the delivery service.

RFC 9111, Section 5.2.2: Cache Rules for Responses

A test clip showing the state after logout

In the hypothetical example, an internal explanatory video should be accessible only during an active session. Before the session ends, it is precisely defined what is expected afterward—such as being unable to access new video segments. Another application could use time-limited sharing links; in that case, the documented validity period of the link would be part of the expected behavior.

  1. Sign in with the test account and start the test video. In the network panel, record the status and Cache-Control value of a video response. Leave cookies, authorisation values and tokens out of the notes.
  2. Sign out through the normal route. Check whether the player shows a frame, plays a buffered section, or receives new media responses.
  3. Open the intended viewer route again. Check the network panel for a real request and response. A restored page can be shown without a new server response.
  4. Repeat once with the browser’s HTTP cache disabled in developer tools. Leave access controls and other browser protections in place, and note the altered cache condition.
  5. Compare the result with the intended rule. If a fresh request still delivers protected media after the expected session end, send the reproducible observation to the responsible developers.

The Back button is a special situation.

MDN notes that a back or forward navigation can restore a previous page state. Therefore, even "no-cache" does not guarantee that every navigation in the browser history will result in a fresh validation. Moreover, an existing video buffer is not subject to the same validation rules as newly loaded HTTP content.

MDN on Cache-Control and Navigation in Browser History

Therefore, in the error report, separate three lines: existing player view, repeated page reload, and fresh media request. Add browser information, timestamp, expected access rule, and actual response. This enables targeted correction. A simple statement like "video visible after logout" does not specify which of these levels is involved.

What question you can ask the provider

Query regarding documented behavior for pages, thumbnails, and actual media responses. The caching rule of an HTML page does not automatically apply to an MP4 download or to stream segments. Data that has already been legally delivered cannot be reliably retrieved upon logging out; a server-side block only affects further access.

Purposefully define video access

Check signed video URLs and their validity

Topics

Sources and further reading

  1. https://www.rfc-editor.org/rfc/rfc9111.html
  2. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control