Difference between revisions of "Cache-Control"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control | * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control | ||
+ | [[Request directives]]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#request_directives | ||
+ | [[no-cache]] | ||
+ | [[no-store]] | ||
[[max-age]] | [[max-age]] | ||
[[max-stale]] | [[max-stale]] | ||
[[min-fresh]] | [[min-fresh]] | ||
− | |||
− | |||
[[no-transform]] | [[no-transform]] | ||
[[only-if-cached]] | [[only-if-cached]] | ||
[[stale-if-error]] | [[stale-if-error]] | ||
+ | [[stale-while-revalidate]] | ||
+ | |||
+ | |||
+ | Cache-Control: [[max-age]]=3600, [[stale-while-revalidate]]=600 | ||
+ | Cache-Control: max-age=3600, stale-if-error=86400 | ||
+ | Cache-Control: max-age=3600, stale-while-revalidate=600, stale-if-error=86400 | ||
+ | Cache-Control: max-age=31536000 | ||
+ | Cache-Control: [[no-cache]] | ||
+ | |||
+ | [[HTTP headers]] | ||
+ | [[aws s3 cp --cache-control]] | ||
+ | [[React caching]] | ||
+ | |||
Latest revision as of 14:38, 19 July 2023
Request directives: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#request_directives
no-cache no-store max-age max-stale min-fresh no-transform only-if-cached stale-if-error stale-while-revalidate
Cache-Control: max-age=3600, stale-while-revalidate=600 Cache-Control: max-age=3600, stale-if-error=86400 Cache-Control: max-age=3600, stale-while-revalidate=600, stale-if-error=86400 Cache-Control: max-age=31536000 Cache-Control: no-cache
aws s3 cp --cache-control React caching
See also[edit]
Advertising: