changeset 2039:d2969b2f69ae

Added history notes about codes 201, 307, and 308.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 17 Apr 2017 19:57:19 +0300
parents ffb3570c352c
children 093855e77388
files xml/en/docs/http/ngx_http_core_module.xml xml/en/docs/http/ngx_http_headers_module.xml xml/ru/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_headers_module.xml
diffstat 4 files changed, 26 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml	Mon Sep 18 20:41:28 2017 +0300
+++ b/xml/en/docs/http/ngx_http_core_module.xml	Mon Apr 17 19:57:19 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="73">
+        rev="74">
 
 <section id="directives" name="Directives">
 
@@ -698,6 +698,13 @@
 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).
+<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/en/docs/http/ngx_http_headers_module.xml	Mon Sep 18 20:41:28 2017 +0300
+++ b/xml/en/docs/http/ngx_http_headers_module.xml	Mon Apr 17 19:57:19 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="9">
+        rev="10">
 
 <section id="summary">
 
@@ -55,7 +55,8 @@
 
 <para>
 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.
 </para>
 
@@ -123,7 +124,8 @@
 <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, 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
 <link doc="../syntax.xml">time</link>.
 </para>
--- a/xml/ru/docs/http/ngx_http_core_module.xml	Mon Sep 18 20:41:28 2017 +0300
+++ b/xml/ru/docs/http/ngx_http_core_module.xml	Mon Apr 17 19:57:19 2017 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_core_module"
         link="/ru/docs/http/ngx_http_core_module.html"
         lang="ru"
-        rev="73">
+        rev="74">
 
 <section id="directives" name="Директивы">
 
@@ -695,6 +695,13 @@
 В этом случае по умолчанию клиенту возвращается код ответа 302.
 Его можно изменить только на один из кодов ответа, относящихся к
 перенаправлениям (301, 302, 303, 307 и 308).
+<note>
+До версий 1.1.16 и 1.0.13 код 307 не обрабатывался как перенаправление.
+</note>
+
+<note>
+До версии 1.13.0 код 308 не обрабатывался как перенаправление.
+</note>
 </para>
 
 <para>
--- a/xml/ru/docs/http/ngx_http_headers_module.xml	Mon Sep 18 20:41:28 2017 +0300
+++ b/xml/ru/docs/http/ngx_http_headers_module.xml	Mon Apr 17 19:57:19 2017 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_headers_module"
         link="/ru/docs/http/ngx_http_headers_module.html"
         lang="ru"
-        rev="9">
+        rev="10">
 
 <section id="summary">
 
@@ -55,7 +55,8 @@
 
 <para>
 Добавляет указанное поле в заголовок ответа при условии, что код ответа
-равен 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).
 В значении можно использовать переменные.
 </para>
 
@@ -119,7 +120,8 @@
 <para>
 Разрешает или запрещает добавлять или менять поля <header>Expires</header>
 и <header>Cache-Control</header> в заголовке ответа при условии, что код ответа
-равен 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).
 В качестве параметра можно задать положительное или отрицательное
 <link doc="../syntax.xml">время</link>.
 </para>