Cache-Control

Rules for how long and where a response may be cached.

Explained

Examples

Example

Cache-Control: public, max-age=31536000, immutable

Watch out

no-cache does not mean "don’t cache": it means "check with the server before using". Use no-store to forbid storing.

Defined in RFC 9111 §5.2.

Other common headers