CacheControl is a String property that contains HTTP Cache-Control general message header directives in an HTTP request or response. CacheControl indicates the behavior that prevents a cache from adversely interfering with the request or response, and generally override the default caching algorithms. Cache directives are unidirectional, and the presence of a directive in a HTTP request does not imply that the same directive will appear in a HTTP response.
Some common values for CacheControl in a HTTP request include the following:
- "no-cache"
- "no-store"
- "max-age=" [delta-seconds]
- "max-stale=" [delta-seconds]
- "min-fresh=" [delta-seconds]
- "no-transform"
- "only-if-cached"
Some common values for CacheControl in a HTTP response include the following:
- "public"
- "private"
- "no-cache"
- "no-store"
- "no-transform"
- "must-revalidate"
- "proxy-revalidate"
- "max-age=" [delta-seconds]
- "s-maxage=" [delta-seconds]
Note: CacheControl might not be implemented for HTTP/1.0, which might contain a header value for storage in the the Pragma property that contains the value "no-cache".