Use cache directives with their actual meanings
MDN’s Cache-Control reference distinguishes private and shared caches. The unqualified private response directive prevents storage in shared caches while allowing a private cache to store the response under the applicable rules. The no-store response directive tells caches not to store it. Choose the approved behavior deliberately.
Do not use no-cache as a synonym for no storage. It concerns reuse without validation, not a universal ban on storing the response. A policy that requires no storage should not be implemented by choosing a directive whose name merely sounds similar.
RFC 9111 section 7 explicitly notes that Set-Cookie does not itself inhibit caching. Some providers implement additional cookie-related defaults, but a cookie field is not a standards-level proof that personalized HTML cannot enter a shared cache. Inspect the configured product and the delivered policy without overriding its safeguards.
Fill a response-eligibility ledger
The following fictional setup page has an anonymous guide and a personalized welcome panel. Context A belongs to one invented test account; context B belongs to another. Use authorized synthetic data in an isolated environment, never another customer’s production account.
| Response case | Fictional body marker | Approved storage boundary | Required observation |
|---|---|---|---|
| Anonymous public guide | PUBLIC_GUIDE | Shared storage permitted under the owner’s public policy | No account-specific marker appears |
| Context A personalized HTML | ACCOUNT_A_SETUP | Private cache only under this example’s policy | Shared cache must not reuse this response for B |
| Context B personalized HTML | ACCOUNT_B_SETUP | Private cache only under this example’s policy | Shared cache must not reuse this response for A |
| Personalized response requiring no storage | SENSITIVE_FIXTURE | No-store under the separate approved rule | No-store reaches the actual delivery path |
| Cookie-only negative | ACCOUNT_A_SETUP plus Set-Cookie only | Not accepted as a storage policy | Audit fails without an explicit approved cache boundary |
These are teaching rules, not universal instructions to cache every anonymous response or every account page privately. If the application requires no storage, choose and test that stricter contract. Authentication and authorization remain mandatory regardless of caching policy.
An explicit public directive, s-maxage or a provider-specific override can materially affect shared-cache behavior. Have the owner review the whole effective policy rather than checking whether the word private appears somewhere in source. Conflicting directives and application-specific overrides need their own resolution.
Test both priming orders and the public control
First capture the origin’s authorized expected response for each synthetic context. The comparison needs an independent account marker; otherwise the wrong response can look like a generic successful page. Record relevant status, cache directives and the approved content identity.
In an owner-controlled cache fixture, request A and then B through the same route and delivery layer. Verify B contains B’s expected marker and none of A’s account-specific material. Reset the controlled fixture and reverse the order. The second run catches a cache that always serves whichever context warmed it first.
Run the anonymous public control separately. If the design allows public caching, show that this path still returns the public guide without account-specific material. Disabling all caching can contain a demonstrated incident, but it is a different operating decision from the intended long-term public/private split.
Preserve actual cache evidence where the supported tooling exposes it. Do not call a second request a shared-cache hit merely because it was fast. Document the layer, configured eligibility, request context and observable storage or reuse result. Untested layers remain unknown.
Do not purge production caches indiscriminately to create the fixture. The owner should provide an isolated environment or a bounded approved procedure. Redact real cookies, tokens and private bodies from broadly shared receipts. The synthetic markers are enough for the published diagnostic.
Check the complete HTML path
Inspect the initial HTML as well as the final rendered page. A client that overwrites the wrong welcome panel after loading has not made the original shared response safe. Likewise, account-specific data can remain in serialized state even when no visible panel displays it.
Treat embedded JSON, hydration data and personalized metadata as part of the response review. The public variant contract helps trace selection and hydration, but accurate variant copy does not establish a valid shared-storage boundary.
Review conditional responses and browser-private caches separately where applicable. Signing out or changing accounts can expose additional local-state behavior. Passing the shared-cache fixture does not certify those flows or replace the application’s privacy and access review.
Use the origin and edge comparison when the delivered policy differs from the approved origin policy. Make a narrow correction at the actual producer or override rather than relying on an editor’s content change.
Keep the negative that would reveal leakage
The acceptance record should contain the eligibility ledger, both priming orders, public control, private-response headers and the deliberate cookie-only negative. The negative must fail the policy review even if that particular provider declines to store the response by default.
Close when the tested delivery path respects the approved storage boundary and each synthetic visitor receives only the intended content. This is a publication-integrity and access-boundary result. It does not prove crawler activity, universal provider behavior or a search-ranking effect.
