# HG changeset patch # User Yaroslav Zhuravlev # Date 1492446554 -10800 # Node ID 2a3c58dcb3e8cf47145b147ce68f84e5561e72f8 # Parent 351cefd5ff9c5c512b3e979e126305b9bda3c7a9 Documented support for the 308 Permanent Redirect. diff -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/en/docs/http/ngx_http_core_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="71">
@@ -697,7 +697,7 @@ 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, and 307). +codes (301, 302, 303, 307, and 308). diff -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/en/docs/http/ngx_http_headers_module.xml --- a/xml/en/docs/http/ngx_http_headers_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/en/docs/http/ngx_http_headers_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="8">
@@ -55,7 +55,7 @@ Adds the specified field to a response header provided that -the response code equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. +the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. A value can contain variables. @@ -90,7 +90,7 @@ 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, or 307. +the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. The parameter can be a positive or negative time.
diff -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/en/docs/http/ngx_http_rewrite_module.xml --- a/xml/en/docs/http/ngx_http_rewrite_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/en/docs/http/ngx_http_rewrite_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="8">
@@ -212,7 +212,7 @@ Starting from version 0.8.42, it is possible to specify -either a redirect URL (for codes 301, 302, 303, and 307), +either a redirect URL (for codes 301, 302, 303, 307, and 308) or the response body text (for other codes). A response body text and redirect URL can contain variables. As a special case, a redirect URL can be specified as a URI @@ -239,6 +239,10 @@ 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 -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="71">
@@ -694,7 +694,7 @@ В этом случае по умолчанию клиенту возвращается код ответа 302. Его можно изменить только на один из кодов ответа, относящихся к -перенаправлениям (301, 302, 303 и 307). +перенаправлениям (301, 302, 303, 307 и 308). diff -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/ru/docs/http/ngx_http_headers_module.xml --- a/xml/ru/docs/http/ngx_http_headers_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/ru/docs/http/ngx_http_headers_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="8">
@@ -55,7 +55,7 @@ Добавляет указанное поле в заголовок ответа при условии, что код ответа -равен 200, 201, 204, 206, 301, 302, 303, 304 или 307. +равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308. В значении можно использовать переменные. @@ -88,7 +88,7 @@ Разрешает или запрещает добавлять или менять поля
Expires
и
Cache-Control
в заголовке ответа при условии, что код ответа -равен 200, 201, 204, 206, 301, 302, 303, 304 или 307. +равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308. В качестве параметра можно задать положительное или отрицательное время.
diff -r 351cefd5ff9c -r 2a3c58dcb3e8 xml/ru/docs/http/ngx_http_rewrite_module.xml --- a/xml/ru/docs/http/ngx_http_rewrite_module.xml Thu Apr 13 15:09:13 2017 +0300 +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml Mon Apr 17 19:29:14 2017 +0300 @@ -10,7 +10,7 @@ + rev="8">
@@ -210,7 +210,7 @@ Начиная с версии 0.8.42 можно задать -либо URL перенаправления (для кодов 301, 302, 303 и 307), +либо URL перенаправления (для кодов 301, 302, 303, 307 и 308) либо текст тела ответа (для остальных кодов). В тексте тела ответа и URL перенаправления можно использовать переменные. Как частный случай, URL перенаправления может быть задан как URI, @@ -237,6 +237,10 @@ До версий 1.1.16 и 1.0.13 код 307 не обрабатывался как перенаправление. + + +До версии 1.13.0 код 308 не обрабатывался как перенаправление. +