aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/http/headers/expires/index.md
blob: 8fbb6f71cd32cecd9e84d23c79d39feaf2f5f26f (plain)
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
---
title: Expires
slug: Web/HTTP/Headers/Expires
translation_of: Web/HTTP/Headers/Expires
---
{{HTTPSidebar}}

Le header **`Expires`** contient la date/heure après laquelle la réponse est considérée comme dépréciée.

Les dates invalides, telles que la valeur 0, représentent une date dans le passé et signifient que la ressource est expirée.

Si un header {{HTTPHeader("Cache-Control")}} contient une directive "max-age" ou "s-max-age" dans la réponse, le header `Expires` sera ignoré.

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">Header type</th>
      <td>{{Glossary("Response header")}}</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Forbidden header name")}}</th>
      <td>no</td>
    </tr>
    <tr>
      <th scope="row">
        {{Glossary("Simple response header", "CORS-safelisted response-header")}}
      </th>
      <td>yes</td>
    </tr>
  </tbody>
</table>

## Syntaxe

    Expires: <http-date>

## Directives

- \<http-date>
  - : An HTTP-date timestamp.

## Exemples

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

## Spécifications

| Specification                                | Title                                           |
| -------------------------------------------- | ----------------------------------------------- |
| {{RFC("7234", "Expires", "5.3")}} | Hypertext Transfer Protocol (HTTP/1.1): Caching |

## Compatibilité des navigateurs

{{Compat("http.headers.Expires")}}

## See also

- {{HTTPHeader("Cache-Control")}}
- {{HTTPHeader("Age")}}