# HG changeset patch # User Yaroslav Zhuravlev # Date 1410856075 -14400 # Node ID d7740f42b00aac94de64cf72e009290a835439d8 # Parent f5cc9f2aef9a62d33af31ea707144d26c9eeb8c3 Headers: documented the "always" parameter of the "add_header" directive. diff --git a/xml/en/docs/http/ngx_http_headers_module.xml b/xml/en/docs/http/ngx_http_headers_module.xml --- a/xml/en/docs/http/ngx_http_headers_module.xml +++ b/xml/en/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="6">
@@ -43,7 +43,9 @@ add_header Cache-Control private;
-name value + +name value +[always] http server @@ -64,6 +66,11 @@ only if there are no directives defined on the current level. + +If the always parameter is specified (1.7.5), +the header field will be added regardless of the response code. + + diff --git a/xml/ru/docs/http/ngx_http_headers_module.xml b/xml/ru/docs/http/ngx_http_headers_module.xml --- a/xml/ru/docs/http/ngx_http_headers_module.xml +++ b/xml/ru/docs/http/ngx_http_headers_module.xml @@ -10,7 +10,7 @@ + rev="6">
@@ -43,7 +43,9 @@ add_header Cache-Control private;
-имя значение + +имя значение +[always] http server @@ -62,6 +64,11 @@ add_header Cache-Control private; уровне не описаны свои директивы add_header. + +Если указан параметр always (1.7.5), +то поле заголовка будет добавлено независимо от кода ответа. + +