# HG changeset patch # User Ruslan Ermilov # Date 1545733636 -10800 # Node ID 6ca49554d5fea51ae1f2ff760151e295987e84fe # Parent 0b582fc34ddcc85d3dbb763d324257e0745044a5 Documented how "expires epoch" affects Cache-Control. diff --git a/xml/en/docs/http/ngx_http_headers_module.xml b/xml/en/docs/http/ngx_http_headers_module.xml --- a/xml/en/docs/http/ngx_http_headers_module.xml +++ b/xml/en/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="11">
@@ -147,8 +147,6 @@ expires @15h30m; -The epoch parameter corresponds to the absolute time -“Thu, 01 Jan 1970 00:00:01 GMT”. The contents of the
Cache-Control
field depends on the sign of the specified time: @@ -167,6 +165,12 @@ where t is a time specifi
+The epoch parameter sets
Expires
+to the value “Thu, 01 Jan 1970 00:00:01 GMT”, +and
Cache-Control
to “no-cache”. +
+ + The max parameter sets
Expires
to the value “Thu, 31 Dec 2037 23:55:55 GMT”, and
Cache-Control
to 10 years. diff --git a/xml/ru/docs/http/ngx_http_headers_module.xml b/xml/ru/docs/http/ngx_http_headers_module.xml --- a/xml/ru/docs/http/ngx_http_headers_module.xml +++ b/xml/ru/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="11">
@@ -143,9 +143,6 @@ expires @15h30m; -Параметр epoch соответствует абсолютному времени -“Thu, 01 Jan 1970 00:00:01 GMT” -(1 января 1970 года 00:00:01 GMT). Содержимое поля
Cache-Control
зависит от знака заданного времени: @@ -164,6 +161,13 @@ expires @15h30m;
+Параметр epoch задаёт время +“Thu, 01 Jan 1970 00:00:01 GMT” +(1 января 1970 00:00:01 GMT) для поля
Expires
+и “no-cache” для поля
Cache-Control
. +
+ + Параметр max задаёт время “Thu, 31 Dec 2037 23:55:55 GMT” (31 декабря 2037 23:55:55 GMT) для поля
Expires