-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
63 lines (46 loc) · 1.39 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: Expires
slug: Web/HTTP/Headers/Expires
---
{{HTTPSidebar}}
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 {{HTTPHeader("Cache-Control")}} com a diretiva "max-age" ou "s-maxage" na resposta, o cabeçalho `Expires` é ignorado.
<table class="properties">
<tbody>
<tr>
<th scope="row">Tipo de Header</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>não</td>
</tr>
<tr>
<th scope="row">
{{Glossary("Simple response header", "CORS-safelisted response-header")}}
</th>
<td>sim</td>
</tr>
</tbody>
</table>
## 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", "Expires", "5.3")}} | Hypertext Transfer Protocol (HTTP/1.1): Caching |
## Compatibilidade com navegadores
{{Compat}}
## Veja também
- {{HTTPHeader("Cache-Control")}}
- {{HTTPHeader("Age")}}