Skip to content
Networking·Intermediate·Conceptual·1 min read

What is the difference between private and public?

Short interview answer

private prevents storage by shared caches while still allowing a browser cache; public explicitly permits shared caching where other rules allow it. Authorization and Set-Cookie interactions require deliberate policies rather than assumptions.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to HTTP caching

Related questions