diff xml/en/docs/http/ngx_http_proxy_module.xml @ 790:ae776a353984

Documented "proxy_cache_methods" directive.
author Vladimir Homutov <vl@nginx.com>
date Fri, 21 Dec 2012 15:19:54 +0000
parents 1063836dacea
children 9e5847af3b2d
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_proxy_module.xml	Fri Dec 21 14:51:50 2012 +0000
+++ b/xml/en/docs/http/ngx_http_proxy_module.xml	Fri Dec 21 15:19:54 2012 +0000
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_proxy_module"
         link="/en/docs/http/ngx_http_proxy_module.html"
         lang="en"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -249,6 +249,29 @@
 </directive>
 
 
+<directive name="proxy_cache_methods">
+<syntax>
+    <literal>GET</literal> |
+    <literal>HEAD</literal> |
+    <literal>POST</literal>
+    ...</syntax>
+<default>GET HEAD</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>0.7.59</appeared-in>
+
+<para>
+If the client request method is listed in this directive then
+the response will be cached.
+“<literal>GET</literal>” and “<literal>HEAD</literal>” methods are always
+added to the list, though it is recommended to specify them explicitly.
+See also the <link id="proxy_no_cache"/> directive.
+</para>
+
+</directive>
+
+
 <directive name="proxy_cache_min_uses">
 <syntax><value>number</value></syntax>
 <default>1</default>