comparison xml/en/docs/http/ngx_http_headers_module.xml @ 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 e1f0ef8cff5e
children 6ca49554d5fe
comparison
equal deleted inserted replaced
2038:ffb3570c352c 2039:d2969b2f69ae
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_headers_module" 10 <module name="Module ngx_http_headers_module"
11 link="/en/docs/http/ngx_http_headers_module.html" 11 link="/en/docs/http/ngx_http_headers_module.html"
12 lang="en" 12 lang="en"
13 rev="9"> 13 rev="10">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_headers_module</literal> module allows adding 18 The <literal>ngx_http_headers_module</literal> module allows adding
53 <context>location</context> 53 <context>location</context>
54 <context>if in location</context> 54 <context>if in location</context>
55 55
56 <para> 56 <para>
57 Adds the specified field to a response header provided that 57 Adds the specified field to a response header provided that
58 the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. 58 the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304,
59 307 (1.1.16, 1.0.13), or 308 (1.13.0).
59 The value can contain variables. 60 The value can contain variables.
60 </para> 61 </para>
61 62
62 <para> 63 <para>
63 There could be several <literal>add_header</literal> directives. 64 There could be several <literal>add_header</literal> directives.
121 <context>if in location</context> 122 <context>if in location</context>
122 123
123 <para> 124 <para>
124 Enables or disables adding or modifying the <header>Expires</header> 125 Enables or disables adding or modifying the <header>Expires</header>
125 and <header>Cache-Control</header> response header fields provided that 126 and <header>Cache-Control</header> response header fields provided that
126 the response code equals 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308. 127 the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304,
128 307 (1.1.16, 1.0.13), or 308 (1.13.0).
127 The parameter can be a positive or negative 129 The parameter can be a positive or negative
128 <link doc="../syntax.xml">time</link>. 130 <link doc="../syntax.xml">time</link>.
129 </para> 131 </para>
130 132
131 <para> 133 <para>