changeset 1964:2a3c58dcb3e8

Documented support for the 308 Permanent Redirect.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 17 Apr 2017 19:29:14 +0300
parents 351cefd5ff9c
children 976792854493
files xml/en/docs/http/ngx_http_core_module.xml xml/en/docs/http/ngx_http_headers_module.xml xml/en/docs/http/ngx_http_rewrite_module.xml xml/ru/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_headers_module.xml xml/ru/docs/http/ngx_http_rewrite_module.xml
diffstat 6 files changed, 22 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 <module name="Module ngx_http_core_module"
         link="/en/docs/http/ngx_http_core_module.html"
         lang="en"
-        rev="70">
+        rev="71">
 
 <section id="directives" name="Directives">
 
@@ -697,7 +697,7 @@
 </example>
 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).
 </para>
 
 <para>
--- 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 @@
 <module name="Module ngx_http_headers_module"
         link="/en/docs/http/ngx_http_headers_module.html"
         lang="en"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
@@ -55,7 +55,7 @@
 
 <para>
 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.
 </para>
 
@@ -90,7 +90,7 @@
 <para>
 Enables or disables adding or modifying the <header>Expires</header>
 and <header>Cache-Control</header> 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
 <link doc="../syntax.xml">time</link>.
 </para>
--- 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 @@
 <module name="Module ngx_http_rewrite_module"
         link="/en/docs/http/ngx_http_rewrite_module.html"
         lang="en"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
@@ -212,7 +212,7 @@
 
 <para>
 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 <value>text</value> (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 @@
 <note>
 The code 307 was not treated as a redirect until versions 1.1.16 and 1.0.13.
 </note>
+
+<note>
+The code 308 was not treated as a redirect until version 1.13.0.
+</note>
 </para>
 
 <para>
--- 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 @@
 <module name="Модуль ngx_http_core_module"
         link="/ru/docs/http/ngx_http_core_module.html"
         lang="ru"
-        rev="70">
+        rev="71">
 
 <section id="directives" name="Директивы">
 
@@ -694,7 +694,7 @@
 </example>
 В этом случае по умолчанию клиенту возвращается код ответа 302.
 Его можно изменить только на один из кодов ответа, относящихся к
-перенаправлениям (301, 302, 303 и 307).
+перенаправлениям (301, 302, 303, 307 и 308).
 </para>
 
 <para>
--- 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 @@
 <module name="Модуль ngx_http_headers_module"
         link="/ru/docs/http/ngx_http_headers_module.html"
         lang="ru"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
@@ -55,7 +55,7 @@
 
 <para>
 Добавляет указанное поле в заголовок ответа при условии, что код ответа
-равен 200, 201, 204, 206, 301, 302, 303, 304 или 307.
+равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308.
 В значении можно использовать переменные.
 </para>
 
@@ -88,7 +88,7 @@
 <para>
 Разрешает или запрещает добавлять или менять поля <header>Expires</header>
 и <header>Cache-Control</header> в заголовке ответа при условии, что код ответа
-равен 200, 201, 204, 206, 301, 302, 303, 304 или 307.
+равен 200, 201, 204, 206, 301, 302, 303, 304, 307 или 308.
 В качестве параметра можно задать положительное или отрицательное
 <link doc="../syntax.xml">время</link>.
 </para>
--- 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 @@
 <module name="Модуль ngx_http_rewrite_module"
         link="/ru/docs/http/ngx_http_rewrite_module.html"
         lang="ru"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
@@ -210,7 +210,7 @@
 
 <para>
 Начиная с версии 0.8.42 можно задать
-либо URL перенаправления (для кодов 301, 302, 303 и 307),
+либо URL перенаправления (для кодов 301, 302, 303, 307 и 308)
 либо <value>текст</value> тела ответа (для остальных кодов).
 В тексте тела ответа и URL перенаправления можно использовать переменные.
 Как частный случай, URL перенаправления может быть задан как URI,
@@ -237,6 +237,10 @@
 <note>
 До версий 1.1.16 и 1.0.13 код 307 не обрабатывался как перенаправление.
 </note>
+
+<note>
+До версии 1.13.0 код 308 не обрабатывался как перенаправление.
+</note>
 </para>
 
 <para>