Name
Cache-Control: directives
Synopsis
The
Cache-control
header specifies desired behavior
from a caching system, as used in proxy servers. For example:
Cache-control: no-cache
Both clients and servers can use the Cache-control
header to specify parameters for the cache or to request certain
kinds of documents from the cache. The caching directives are
specified in a comma-separated list.
Cache request directives are:
Directive |
Meaning |
|
A cache can keep a cached copy of the document, but must always revalidate it before sending it back to the client. |
|
Remove information promptly after forwarding. The cache should not store anything about the client request or server response. This option prevents the accidental storing of secure or sensitive information in the cache. |
|
Do not send responses older than |
|
The cache can send a cached document that is older than its
expiration date. If |
|
Send data only if still fresh after the specified number of seconds. The cache can send a cached document only if there are at least a certain number of seconds between now and its expiration time. |
|
Do not retrieve new data. The cache can send a document only if it is in the cache, ... |
Get HTTP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.