Expires
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
O cabeçalho Expires
contém a data/hora após a qual a resposta é considerada velha.
Datas inválidas, como o valor 0, representam uma data no passado e significam que o recurso já expirou.
Se existe um cabeçalho Cache-Control
com a diretiva "max-age" ou "s-maxage" na resposta, o cabeçalho Expires
é ignorado.
Tipo de Header | Response header |
---|---|
Forbidden header name | não |
CORS-safelisted response-header | sim |
Sintaxe
Expires: <http-date>
Diretivas
- <http-date>
-
Ums data/hora HTTP-date.
Exemplos
Expires: Wed, 21 Oct 2015 07:28:00 GMT
Especificações
Especificação | Título |
---|---|
RFC 7234, sessão 5.3: Expires | Hypertext Transfer Protocol (HTTP/1.1): Caching |
Compatibilidade com navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Expires |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.