comparison 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
comparison
equal deleted inserted replaced
789:1063836dacea 790:ae776a353984
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_proxy_module" 10 <module name="Module ngx_http_proxy_module"
11 link="/en/docs/http/ngx_http_proxy_module.html" 11 link="/en/docs/http/ngx_http_proxy_module.html"
12 lang="en" 12 lang="en"
13 rev="5"> 13 rev="6">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_proxy_module</literal> module allows to pass 18 The <literal>ngx_http_proxy_module</literal> module allows to pass
242 <context>location</context> 242 <context>location</context>
243 <appeared-in>1.1.12</appeared-in> 243 <appeared-in>1.1.12</appeared-in>
244 244
245 <para> 245 <para>
246 Sets a timeout for <link id="proxy_cache_lock"/>. 246 Sets a timeout for <link id="proxy_cache_lock"/>.
247 </para>
248
249 </directive>
250
251
252 <directive name="proxy_cache_methods">
253 <syntax>
254 <literal>GET</literal> |
255 <literal>HEAD</literal> |
256 <literal>POST</literal>
257 ...</syntax>
258 <default>GET HEAD</default>
259 <context>http</context>
260 <context>server</context>
261 <context>location</context>
262 <appeared-in>0.7.59</appeared-in>
263
264 <para>
265 If the client request method is listed in this directive then
266 the response will be cached.
267 “<literal>GET</literal>” and “<literal>HEAD</literal>” methods are always
268 added to the list, though it is recommended to specify them explicitly.
269 See also the <link id="proxy_no_cache"/> directive.
247 </para> 270 </para>
248 271
249 </directive> 272 </directive>
250 273
251 274