changeset 1599:12714bbf9230

Documented the "proxy_cache_convert_head" directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 12 Nov 2015 20:02:07 +0300
parents 430261d33e38
children dd190baef1e7
files xml/en/docs/http/ngx_http_proxy_module.xml
diffstat 1 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_proxy_module.xml
+++ b/xml/en/docs/http/ngx_http_proxy_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_proxy_module"
         link="/en/docs/http/ngx_http_proxy_module.html"
         lang="en"
-        rev="42">
+        rev="43">
 
 <section id="summary">
 
@@ -197,6 +197,24 @@ Can be used along with the <link id="pro
 
 </directive>
 
+<directive name="proxy_cache_convert_head">
+<syntax><literal>on</literal> | <literal>off</literal></syntax>
+<default>on</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.9.7</appeared-in>
+
+<para>
+Enables or disables the conversion of the “<literal>HEAD</literal>” method
+to “<literal>GET</literal>” for caching.
+When the conversion is disabled, the
+<link id="proxy_cache_key">cache key</link> should be configured
+to include the <var>$request_method</var>.
+</para>
+
+</directive>
+
 
 <directive name="proxy_cache_key">
 <syntax><value>string</value></syntax>