// http header · caching header

Cache-Control

Directives for caching in browsers and proxies

What the Cache-Control header does

Cache-Control is the primary header for caching, carrying directives for browsers and proxies: max-age=3600 (cache for an hour), public/private, no-cache (revalidate before use), and no-store (don't cache at all). It overrides the older Expires header.

Example

Cache-Control: max-age=3600, public

Where it's used

Cache-Control is a caching header. Caching headers control how browsers and proxies store and reuse responses.

Other caching headers

Cache-Control Age Expires Vary