Cache-Control
- •
What it is
- •
an HTTP field contatining directives that govern cache behavior
- •
- •
Common response directives
- •
max-age=3600— a freshness lifetime of 3,600 seconds - •
no-cache— storage is allowed, but reuse requires successful validation - •
no-store— the response must not be stored by an HTTP cache - •
private— shared caches must not store the response - •
public— explicitly permits shared caching subject to applicable rules - •
must-revalidate—once stale, reuse requires successful validation - •
immutable— the representation is not expected to change during its freshness lifetime
- •
- •
Caution
- •
changing server headers does not immediately change rules attached to already-stored, still-fresh responses
- •
- •
Source
- •
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control
- •
- •
Related