Optional ReadonlyimmutableIndicates that the resource will not change, so it does not need to be revalidated.
Example: immutable
Optional ReadonlymaxThe maximum amount of time (in seconds) a resource is considered fresh.
Example: max-age=3600 (1 hour)
Optional ReadonlymustEnsures that stale responses cannot be used without successful revalidation with the origin server.
Example: must-revalidate
Optional ReadonlynoRequires the resource to be revalidated with the origin server before serving it from the cache.
Example: no-cache
Optional ReadonlynoPrevents the resource from being cached by any mechanism.
Example: no-store
Optional ReadonlyonlyIndicates the client only wants a response from the cache and will not make a network request.
Example: only-if-cached
Optional ReadonlyprivateIndicates the resource is cacheable only by the user's browser or private caches, not shared caches.
Example: private
Optional ReadonlypublicIndicates the resource is cacheable by both shared and private caches.
Example: public
Optional ReadonlystaleAllows serving stale responses (in seconds) if the origin server is unavailable or returns an error.
Example: stale-if-error=86400 (1 day)
Optional ReadonlystaleAllows serving stale responses for the specified duration (in seconds) while asynchronously revalidating the
cache.
Example: stale-while-revalidate=60
Represents all known Cache-Control directives.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control