# HG changeset patch # User Ruslan Ermilov # Date 1355914259 0 # Node ID b4fc7d571e486321a1c37a07e0c7fec5946a4357 # Parent d84a97e02b45db7338cb077f0ccb9f5568e9afe3 Documented that "add_header" now affects 201 responses. 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="4">
@@ -52,7 +52,7 @@ add_header Cache-Control private; Adds the specified field to a response header provided that -the response code equals 200, 204, 206, 301, 302, 303, 304, or 307. +the response code equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. A value can contain variables. @@ -74,7 +74,7 @@ A value can contain variables. Enables or disables adding or modifying the
Expires
and
Cache-Control
response header fields provided that -the response code equals 200, 204, 206, 301, 302, 303, 304, or 307. +the response code equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. A parameter can be a positive or negative time.
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="4">
@@ -52,7 +52,7 @@ add_header Cache-Control private; Добавляет указанное поле в заголовок ответа при условии, что код ответа -равен 200, 204, 206, 301, 302, 303, 304 или 307. +равен 200, 201, 204, 206, 301, 302, 303, 304 или 307. В значении можно использовать переменные. @@ -74,7 +74,7 @@ add_header Cache-Control private; Разрешает или запрещает добавлять или менять поля
Expires
и
Cache-Control
в заголовке ответа при условии, что код ответа -равен 200, 204, 206, 301, 302, 303, 304 или 307. +равен 200, 201, 204, 206, 301, 302, 303, 304 или 307. В качестве параметра можно задать положительное или отрицательное время.