Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

Cache-Control

Summary

Specifies directives for caches along the path to the origin server. The header is found in both directions, but the directives may have different semantics depending on direction.

Request directives are:

  • max-age
  • max-stale
  • min-fresh
  • no-cache
  • no-store
  • no-transform
  • only-if-cached

Response directives are:

  • must-revalidate
  • no-cache
  • no-store
  • no-transform
  • public
  • private
  • proxy-revalidate
  • max-age
  • s-maxage

Overview table

Direction
Request and Response

Features
:

Syntax

Cache-Control   = 1#cache-directive
cache-directive = token [ "=" ( token / quoted-string ) ]

Examples


Related specifications

RFC7234: HTTP/1.1 Caching
: