HTTP caching - HTTP
developer.mozilla.org·3d
💾Cache Design
Preview
Report Post

Types of caches

In the HTTP Caching spec, there are two main types of caches: private caches and shared caches.

Private caches

A private cache is a cache tied to a specific client — typically a browser cache. Since the stored response is not shared with other clients, a private cache can store a personalized response for that user.

On the other hand, if personalized contents are stored in a cache other than a private cache, then other users may be able to retrieve those contents — which may cause unintentional information leakage.

If a response contains personalized content and you want to store the response only in the private cache, you must specify a private directive.

Cache-...

Similar Posts

Loading similar posts...