# HG changeset patch # User Yaroslav Zhuravlev # Date 1492448239 -10800 # Node ID d2969b2f69ae568c18cb05a576e63c3c8b199f2b # Parent ffb3570c352cd23a2a9ff5218ff7427b5ce40dbe Added history notes about codes 201, 307, and 308. diff --git a/xml/en/docs/http/ngx_http_core_module.xml b/xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="74">
@@ -698,6 +698,13 @@ error_page 404 =301 http://example.com/n In this case, by default, the response code 302 is returned to the client. It can only be changed to one of the redirect status codes (301, 302, 303, 307, and 308). + +The code 307 was not treated as a redirect until versions 1.1.16 and 1.0.13. + + + +The code 308 was not treated as a redirect until version 1.13.0. + 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="10">
@@ -55,7 +55,8 @@ add_header Cache-Control private; Adds the specified field to a response header provided that -the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. +the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, +307 (1.1.16, 1.0.13), or 308 (1.13.0). The value can contain variables. @@ -123,7 +124,8 @@ the specified field will be added regard Enables or disables adding or modifying the
Expires
and
Cache-Control
response header fields provided that -the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. +the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, +307 (1.1.16, 1.0.13), or 308 (1.13.0). The parameter can be a positive or negative time.
diff --git a/xml/ru/docs/http/ngx_http_core_module.xml b/xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml +++ b/xml/ru/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ + rev="74">
@@ -695,6 +695,13 @@ error_page 404 =301 http://example.com/n В этом случае по умолчанию клиенту возвращается код ответа 302. Его можно изменить только на один из кодов ответа, относящихся к перенаправлениям (301, 302, 303, 307 и 308). + +До версий 1.1.16 и 1.0.13 код 307 не обрабатывался как перенаправление. + + + +До версии 1.13.0 код 308 не обрабатывался как перенаправление. + 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="10">
@@ -55,7 +55,8 @@ add_header Cache-Control private; Добавляет указанное поле в заголовок ответа при условии, что код ответа -равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308. +равен 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, +307 (1.1.16, 1.0.13) или 308 (1.13.0). В значении можно использовать переменные. @@ -119,7 +120,8 @@ add_header Cache-Control private; Разрешает или запрещает добавлять или менять поля
Expires
и
Cache-Control
в заголовке ответа при условии, что код ответа -равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308. +равен 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, +307 (1.1.16, 1.0.13) или 308 (1.13.0). В качестве параметра можно задать положительное или отрицательное время.