Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_headers_module.xml @ 1291:d7740f42b00a
Headers: documented the "always" parameter of the "add_header" directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 16 Sep 2014 12:27:55 +0400 |
parents | b841fbb8c577 |
children | ab0ebdd7ddac |
comparison
equal
deleted
inserted
replaced
1290:f5cc9f2aef9a | 1291:d7740f42b00a |
---|---|
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="5"> | 13 rev="6"> |
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 |
41 | 41 |
42 | 42 |
43 <section id="directives" name="Directives"> | 43 <section id="directives" name="Directives"> |
44 | 44 |
45 <directive name="add_header"> | 45 <directive name="add_header"> |
46 <syntax><value>name</value> <value>value</value></syntax> | 46 <syntax> |
47 <value>name</value> <value>value</value> | |
48 [<literal>always</literal>]</syntax> | |
47 <default/> | 49 <default/> |
48 <context>http</context> | 50 <context>http</context> |
49 <context>server</context> | 51 <context>server</context> |
50 <context>location</context> | 52 <context>location</context> |
51 <context>if in location</context> | 53 <context>if in location</context> |
60 There could be several <literal>add_header</literal> directives. | 62 There could be several <literal>add_header</literal> directives. |
61 These directives are inherited from the previous level if and | 63 These directives are inherited from the previous level if and |
62 only if there are no | 64 only if there are no |
63 <literal>add_header</literal> | 65 <literal>add_header</literal> |
64 directives defined on the current level. | 66 directives defined on the current level. |
67 </para> | |
68 | |
69 <para> | |
70 If the <literal>always</literal> parameter is specified (1.7.5), | |
71 the header field will be added regardless of the response code. | |
65 </para> | 72 </para> |
66 | 73 |
67 </directive> | 74 </directive> |
68 | 75 |
69 | 76 |