Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How does Cache-Control No-Store work?
Cyber Security

How does Cache-Control No-Store work?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 19, 2026 Domain: Cyber Security

Cache-Control: no-store instructs browsers and intermediaries not to store a response. It is used for highly sensitive content such as authenticated pages, account data or one-time tokens. Practitioners check that responses needing privacy really carry it, while recognising it can affect performance and offline behaviour.

What no-store changes in the browser and intermediary caches

Cache-Control: no-store tells a user agent not to persist the response in any cache that would retain it for later reuse. That matters because the directive is about storage, not just visibility: the response should be handled as temporary data and discarded once it is no longer needed. In practice, it is used when the content itself is too sensitive to leave behind.

The directive is most meaningful on responses that include authenticated or one-time material, because the main goal is to reduce the chance of local or shared reuse. It does not rewrite the application’s access model, but it does change how safely the response can pass through layers that might otherwise retain a copy.

Where no-store is most appropriate

No-store is the right fit when a cached copy would create an unacceptable privacy or exposure problem. That includes account pages, personally sensitive records, session-dependent views, and single-use tokens where even short-lived retention can be undesirable. The control is strongest when the response should not survive beyond the immediate transaction.

It is also useful when you want to reduce residual exposure after logout, timeout, or token use. The practical value is that the browser and any compliant intermediary should avoid keeping the content available for back-button resurfacing, disk cache reuse, or later retrieval from a shared device.

For a broader treatment of how HTTP hardening choices fit together, Security Headers Guide explains how cache controls sit alongside other response protections such as CSP, HSTS, and cookie attributes.

What no-store does not solve by itself

No-store is not a confidentiality guarantee for the entire data path. It does not stop the server from generating the response, nor does it prevent an endpoint from being observed in transit if transport protection is weak. It also does not remove data already captured in logs, browser memory, screenshots, or application telemetry that sits outside cache semantics.

It is best treated as one layer in a privacy posture, not the only one. If the page contains sensitive state, you still need proper authentication, session handling, and careful control of what gets rendered in the first place. Cache directives reduce post-response residue; they do not compensate for overexposed content.

Risk and Threat Considerations

When no-store is missing on sensitive responses, the main risk is unintended retention on shared, managed, or compromised endpoints. That can expose account data or one-time values after the user believes the session has ended, especially if a browser restores history or a third party inspects local storage artifacts.

Failure mechanism: A response that should be transient is retained by a browser, proxy, or other intermediary, then resurfaced later through history, local cache, or device reuse. That creates a recovery path for sensitive content even after logout or timeout.

Impact: The exposed data may include personal details, authenticated page content, or one-time tokens that should have been discarded. The result is avoidable confidentiality loss and a wider blast radius on shared or recovered systems.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.DS-11 — Data ConfidentialityNo-store protects sensitive response data from unintended retention and reuse.
Recommendation — Apply data confidentiality controls to prevent sensitive responses from persisting in caches.
NIST SP 800-53 Rev 5SC-28 — Protection of Information at RestNo-store reduces at-rest exposure by limiting cached copies of sensitive responses.
Recommendation — Limit retention of sensitive response content where storage is unnecessary.
ISO/IEC 27001:2022A.8.24 — Use of cryptographySensitive responses still need transport and content protection beyond cache headers.
Recommendation — Protect sensitive data in transit and at rest with appropriate technical controls.
CIS Controls v8CIS-3 — Data ProtectionNo-store is part of preventing unnecessary persistence of sensitive information.
Recommendation — Classify sensitive content and restrict where it can be retained or reused.

Practitioner Guidance

What to verify: Check the actual response headers on the sensitive endpoints, not just the template or framework defaults. The important question is whether every page that can reveal account state, credentials, or one-time material consistently carries the directive when it matters.

Common mistake: Teams often protect the login page but forget downstream authenticated views, error pages, or token delivery endpoints. That leaves the most sensitive responses outside the cache policy even though the surrounding application is otherwise hardened.

Decision rule: If a stored copy would create meaningful privacy or reuse risk, prefer no-store over relying on cache expiry alone. If the page must support offline use or faster back-navigation, treat that as a deliberate trade-off and avoid using no-store unless the sensitivity justifies it.

Practitioner takeaway: Use no-store when the cost of residual response retention is higher than the performance or usability benefit of caching, because the real control objective is to prevent sensitive content from surviving beyond the transaction.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org