aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/http/заголовки/expires/index.html
blob: 2d946f0724bd2eaede2e473824144b3ca796bb67 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
title: Expires
slug: Web/HTTP/Заголовки/Expires
tags:
  - HTTP
  - Заголовки
  - Кеширование
  - Ответ сервера
translation_of: Web/HTTP/Headers/Expires
---
<div>{{HTTPSidebar}}</div>

<p>Заголовок <code><strong>Expires</strong></code><strong> </strong>содержит дату/время, по истечении которой ответ сервера считается устаревшим.</p>

<p>Прошедшая или невалидная дата, например 0, обозначает, что ресурс уже устарел.</p>

<p>Если в ответе с сервера установлен заголовок {{HTTPHeader("Cache-Control")}} с директивами "max-age" или "s-maxage" , заголовок <code>Expires</code> игнорируется. </p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Тип заголовка</th>
   <td>{{Glossary("Response header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name", "Запрещенное имя заголовка")}}</th>
   <td>нет</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Simple response header", "CORS безопасный заголовок ")}}</th>
   <td>да</td>
  </tr>
 </tbody>
</table>

<h2 id="Синтакс">Синтакс</h2>

<pre class="syntaxbox notranslate">Expires: &lt;http-date&gt;
</pre>

<h2 id="Директивы">Директивы</h2>

<dl>
 <dt>&lt;http-date&gt;</dt>
 <dd>
 <p>HTTP-дата и время.</p>
 </dd>
</dl>

<h2 id="Примеры">Примеры</h2>

<pre class="notranslate">Expires: Wed, 21 Oct 2015 07:28:00 GMT</pre>

<h2 id="Спецификация">Спецификация</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Спецификация</th>
   <th scope="col">Название</th>
  </tr>
  <tr>
   <td>{{RFC("7234", "Expires", "5.3")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Caching</td>
  </tr>
 </tbody>
</table>

<h2 id="Совместимость_браузера">Совместимость браузера</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat("http/headers/expires")}}</p>

<h2 id="Смотрите_также">Смотрите также</h2>

<ul>
 <li>{{HTTPHeader("Cache-Control")}}</li>
 <li>{{HTTPHeader("Age")}}</li>
</ul>