Difference between revisions of "Cache-Control"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
  [[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-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]]
 
[[HTTP headers]]
Line 20: Line 25:
  
  
 +
[[RFC 8246: HTTP Immutable Responses]] (2017)
 +
  [[Cache-Control]]: [[max-age]]=31536000, [[immutable]]
  
 
== See also ==
 
== See also ==

Latest revision as of 12:12, 2 February 2026

Advertising: