Mercurial > hg > nginx-site
diff 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 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_headers_module.xml +++ b/xml/en/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_headers_module" link="/en/docs/http/ngx_http_headers_module.html" lang="en" - rev="5"> + rev="6"> <section id="summary"> @@ -43,7 +43,9 @@ add_header Cache-Control private; <section id="directives" name="Directives"> <directive name="add_header"> -<syntax><value>name</value> <value>value</value></syntax> +<syntax> +<value>name</value> <value>value</value> +[<literal>always</literal>]</syntax> <default/> <context>http</context> <context>server</context> @@ -64,6 +66,11 @@ only if there are no directives defined on the current level. </para> +<para> +If the <literal>always</literal> parameter is specified (1.7.5), +the header field will be added regardless of the response code. +</para> + </directive>