changeset 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 15f2bab0740d
files xml/en/docs/http/ngx_http_proxy_module.xml xml/ru/docs/http/ngx_http_proxy_module.xml
diffstat 2 files changed, 48 insertions(+), 2 deletions(-) [+]
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>
--- a/xml/ru/docs/http/ngx_http_proxy_module.xml	Fri Dec 21 14:51:50 2012 +0000
+++ b/xml/ru/docs/http/ngx_http_proxy_module.xml	Fri Dec 21 15:19:54 2012 +0000
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_proxy_module"
         link="/ru/docs/http/ngx_http_proxy_module.html"
         lang="ru"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -248,6 +248,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>
+Если метод запроса клиента указан в этой директиве,
+то ответ будет закэширован.
+Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются
+в список, но тем не менее рекомендуется перечислять их явно.
+См. также директиву <link id="proxy_no_cache"/>.
+</para>
+
+</directive>
+
+
 <directive name="proxy_cache_min_uses">
 <syntax><value>число</value></syntax>
 <default>1</default>