January 2019
Beginner
132 pages
3h 14m
English
The Expires header is another way of defining how long to retain cached information. This header defines an exact date and time from which the content will be considered stale and should be refreshed. This time should coincide with the max-age directive from the Cache-Control header, if one is provided.
In our example, the Expires header matches the 7-day expiration based on the Date header, which defines when the request was received by the server:
Date: Mon, 29 Oct 2018 13:31:23 GMTExpires: Mon, 05 Nov 2018 13:31:23 GMT
Read now
Unlock full access