
Caching authenticated content requires explicit decisions about who may reuse a response, what identifies its context and when it becomes invalid. Faster responses are not useful if one user receives another user's data. Review browser, shared, application and derived-data caches rather than treating them as one interchangeable layer.

Let’s plan your private cache boundaries.
Bring your workflow, constraints and open questions. We’ll help you define the requirements and work through a practical next step.
Classify the cached content
Separate public assets and pages from user-specific records, tenant summaries and permission-dependent fragments. Identify the authority and freshness requirements of each.
MDN's HTTP caching guide distinguishes cache behaviour and response controls. Apply the current framework and infrastructure documentation as well; a generic header example does not establish every layer's behaviour.
Use a cache-boundary worksheet
| Context | Requirement to establish | Test case |
|---|---|---|
| Public content | Safe shared reuse | No private variation in response |
| User-specific page | Correct identity and reuse boundary | Two users request the same URL |
| Tenant summary | Tenant and relevant authority included | Workspace switch |
| Permission change | Defined invalidation or recheck | Access revoked after content cached |
| Sign-out | Approved local-state treatment | Another account uses the device |
| Error response | Appropriate cache policy | Temporary denial does not persist incorrectly |
Do not rely on a hidden menu or hard-to-guess URL to make cached private content safe. Access enforcement and cache scoping are separate controls.
Treat stale authority differently from stale display data
For a hypothetical dashboard, a slightly delayed aggregate may be acceptable under an agreed freshness rule. Reusing a response after a user's access is removed can have a different consequence.
Define which responses require current authorisation and how cached derived content follows that rule. A cache key based only on the URL may omit important identity or tenant context.
Verify real request paths
Test synthetic identities with different permissions through the same deployed path, including relevant proxies and application caches. Inspect responses and observable headers using approved development tools.
Include sign-out, account switching and changed record access. A successful local test without the deployed shared cache does not establish production isolation.
Private-cache questions
Should all authenticated data be cached identically?
No. Choose a reviewed policy from content, authority and freshness requirements.
Does clearing the browser cache invalidate server caches?
Not generally. Map the actual cache layers and their separate invalidation mechanisms.
Use multi-tenant requirements, and discuss the deployed response path with Drema's web team.
This article explains what to build, not legal advice. Rules change; confirm against the current official text before relying on it.

