A page generated from a database can be safe for everyone to read. A PDF sitting on disk can contain one patient’s records. The way a file is produced tells you surprisingly little about whether two visitors should receive the same bytes.

Who can share this answer?

Take a catalog with a public description and a negotiated price for signed-in resellers. The description may have one public representation. The price depends on entitlement. Separate the public data from the account-specific response if you want to reuse the description without risking a private price.

Which inputs change the response?

A language path, currency query or region selected by the application can change what the user sees. A tracking parameter often has no effect. Verify this at the origin before changing the cache key. Ignoring a real input returns the wrong variant, while retaining incidental inputs creates multiple copies of the same public data.

What happens when an editor makes a change?

For an event schedule, define the delay the editor can tolerate between publishing a cancellation and readers seeing it. Choose a suitable TTL or explicit invalidation path, and account for browser freshness. A response may be public and still require prompt correction.

Sources & further reading

Reader questions

Is a GET request automatically public?

No. A GET can return a private profile or an invoice. Decide whether shared storage is permissible from the access rules and response semantics.