httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1584082 - /httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml
Date Wed, 02 Apr 2014 16:22:09 GMT
Author: covener
Date: Wed Apr  2 16:22:09 2014
New Revision: 1584082

URL: http://svn.apache.org/r1584082
Log:
Merge r1584081 from trunk:

provide an expression parser example that can control based on http status code,
rather than just excluding locally generated errors.



Modified:
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml?rev=1584082&r1=1584081&r2=1584082&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_headers.xml Wed Apr  2 16:22:09 2014
@@ -186,6 +186,13 @@ Header merge Cache-Control no-store env=
           Header set Set-Cookie testcookie "expr=-z %{req:Cookie}"
         </highlight>
       </li>
+      <li>
+        Append a Caching header for responses with a HTTP status code of 200
+        <highlight language="config">
+          Header append Cache-Control s-maxage=600 "expr=%{REQUEST_STATUS} == 200"
+        </highlight>
+      </li>
+
     </ol>
 </section>
 
@@ -343,9 +350,9 @@ Header merge Cache-Control no-store env=
             <code>onsuccess</code> condition.</li>
     </ul>
 
-    <p>It is not currently possible to limit an action to a range of HTTP 
-    status codes, if the responses are successfully handled by e.g. CGI or
-    proxy modules.</p>
+    <p>Separately from the <var>condition</var> paramete described above,
you 
+    can limit an action based on HTTP status codes for e.g. proxied or CGI 
+    requests. See the example that uses %{REQUEST_STATUS} in the section above.</p>
 
     <p>The action it performs is determined by the first
     argument (second argument if a <var>condition</var> is specified).



Mime
View raw message