Quote from Cache-Control:
max-ageThe
max-age=Nresponse directive indicates that the response remains fresh until N seconds after the response is generated.Cache-Control: max-age=604800Indicates that caches can store this response and reuse it for subsequent requests while it's fresh.
Note that
max-ageis not the elapsed time since the response was received, but instead the elapsed time since the response was generated on the origin server. So if the other cache(s) on the path the response takes store it for 100 seconds (indicated using theAgeresponse header field), the browser cache would deduct 100 seconds from its freshness lifetime. [emphasis added]Cache-Control: max-age=604800 Age: 100
If Age isn't used when using Cache-Control: max-age, can browsers know when the cache is outdated? If they can, how?