Mercurial > hg > nginx-site
changeset 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 | 0b582fc34ddc |
children | 1a6524706c70 |
files | xml/en/docs/http/ngx_http_headers_module.xml xml/ru/docs/http/ngx_http_headers_module.xml |
diffstat | 2 files changed, 15 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_headers_module.xml Thu Dec 20 19:33:30 2018 +0300 +++ b/xml/en/docs/http/ngx_http_headers_module.xml Tue Dec 25 13:27:16 2018 +0300 @@ -10,7 +10,7 @@ <module name="Module ngx_http_headers_module" link="/en/docs/http/ngx_http_headers_module.html" lang="en" - rev="10"> + rev="11"> <section id="summary"> @@ -147,8 +147,6 @@ </para> <para> -The <literal>epoch</literal> parameter corresponds to the absolute time -“<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>”. The contents of the <header>Cache-Control</header> field depends on the sign of the specified time: <list type="bullet"> @@ -167,6 +165,12 @@ </para> <para> +The <literal>epoch</literal> parameter sets <header>Expires</header> +to the value “<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>”, +and <header>Cache-Control</header> to “<literal>no-cache</literal>”. +</para> + +<para> The <literal>max</literal> parameter sets <header>Expires</header> to the value “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>”, and <header>Cache-Control</header> to 10 years.
--- a/xml/ru/docs/http/ngx_http_headers_module.xml Thu Dec 20 19:33:30 2018 +0300 +++ b/xml/ru/docs/http/ngx_http_headers_module.xml Tue Dec 25 13:27:16 2018 +0300 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_headers_module" link="/ru/docs/http/ngx_http_headers_module.html" lang="ru" - rev="10"> + rev="11"> <section id="summary"> @@ -143,9 +143,6 @@ </para> <para> -Параметр <literal>epoch</literal> соответствует абсолютному времени -“<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>” -(1 января 1970 года 00:00:01 GMT). Содержимое поля <header>Cache-Control</header> зависит от знака заданного времени: <list type="bullet"> @@ -164,6 +161,13 @@ </para> <para> +Параметр <literal>epoch</literal> задаёт время +“<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>” +(1 января 1970 00:00:01 GMT) для поля <header>Expires</header> +и “<literal>no-cache</literal>” для поля <header>Cache-Control</header>. +</para> + +<para> Параметр <literal>max</literal> задаёт время “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>” (31 декабря 2037 23:55:55 GMT) для поля <header>Expires</header>