Browser Cache
Overview

Cache - Control
Etag

References
Last updated


Last updated
A cache MUST NOT store a response to any request, unless:
o The request method is understood by the cache and defined as being
cacheable, and
o the response status code is understood by the cache, and
o the "no-store" cache directive does not appear
in request or response header fields, and
o the "private" response directive does not
appear in the response, if the cache is shared, and
o the Authorization header field does
not appear in the request, if the cache is shared, unless the
response explicitly allows it , and
o the response either:
* contains an Expires header field, or
* contains a max-age response directive, or
* contains a s-maxage response directive
and the cache is shared, or
* contains a Cache Control Extension that
allows it to be cached, or
* has a status code that is defined as cacheable by default , or
* contains a public response directive.Cache-Control: must-revalidate
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: no-transform
Cache-Control: public
Cache-Control: private
Cache-Control: proxy-revalidate
Cache-Control: max-age=<秒數>
Cache-Control: s-maxage=<秒數>