Mercurial > hg > nginx-site
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 +++ 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="5"> + rev="6"> <section id="summary"> @@ -249,6 +249,29 @@ Sets a timeout for <link id="proxy_cache </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>