Cache-Control is a header that helps to deal with the cache. It defines the policy to use for the request/response. Used on a response, it defines how the client should cache the data; on a request, it defines what the server can send back in terms of policy.
This header supports multiple values, which can be concatenated when compatible, separated by a comma. Here are the values you can use to define the way data is cached on the client:
Value
|
Description
|
public/private | This defines whether the cache is public or private. A private cache is dedicated to a single client whereas a public cache is shared by several clients. |
no-cache | This defines the cached entry as outdated and enforces the loading of data once again ... |