docs.rodeo

MDN Web Docs mirror

Expires

{{HTTPSidebar}} 

The HTTP Expires {{Glossary("response header")}}  contains the date/time after which the response is considered expired in the context of HTTP caching.

The value 0 is used to represent a date in the past, indicating the resource has already expired.

[!NOTE] If there is a {{HTTPHeader("Cache-Control")}}  header with the max-age or s-maxage directive in the response, the Expires header is ignored.

Header type `{{Glossary("Response header")}}` 
`{{Glossary("Forbidden header name")}}`  No
`{{Glossary("CORS-safelisted response header")}}`  Yes

Syntax

Expires: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT

Directives

Examples

Expires: Wed, 21 Oct 2015 07:28:00 GMT

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN