Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_headers_module.xml @ 2311:6ca49554d5fe
Documented how "expires epoch" affects Cache-Control.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 25 Dec 2018 13:27:16 +0300 |
parents | d2969b2f69ae |
children | 375a3dfde23b |
comparison
equal
deleted
inserted
replaced
2310:0b582fc34ddc | 2311:6ca49554d5fe |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_headers_module" | 10 <module name="Module ngx_http_headers_module" |
11 link="/en/docs/http/ngx_http_headers_module.html" | 11 link="/en/docs/http/ngx_http_headers_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="10"> | 13 rev="11"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_headers_module</literal> module allows adding | 18 The <literal>ngx_http_headers_module</literal> module allows adding |
145 expires @15h30m; | 145 expires @15h30m; |
146 </example> | 146 </example> |
147 </para> | 147 </para> |
148 | 148 |
149 <para> | 149 <para> |
150 The <literal>epoch</literal> parameter corresponds to the absolute time | |
151 “<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>”. | |
152 The contents of the <header>Cache-Control</header> field depends | 150 The contents of the <header>Cache-Control</header> field depends |
153 on the sign of the specified time: | 151 on the sign of the specified time: |
154 <list type="bullet"> | 152 <list type="bullet"> |
155 | 153 |
156 <listitem> | 154 <listitem> |
162 <header>Cache-Control: max-age=<value>t</value></header>, | 160 <header>Cache-Control: max-age=<value>t</value></header>, |
163 where <value>t</value> is a time specified in the directive, in seconds. | 161 where <value>t</value> is a time specified in the directive, in seconds. |
164 </listitem> | 162 </listitem> |
165 | 163 |
166 </list> | 164 </list> |
165 </para> | |
166 | |
167 <para> | |
168 The <literal>epoch</literal> parameter sets <header>Expires</header> | |
169 to the value “<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>”, | |
170 and <header>Cache-Control</header> to “<literal>no-cache</literal>”. | |
167 </para> | 171 </para> |
168 | 172 |
169 <para> | 173 <para> |
170 The <literal>max</literal> parameter sets <header>Expires</header> | 174 The <literal>max</literal> parameter sets <header>Expires</header> |
171 to the value “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>”, | 175 to the value “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>”, |