[3.0] be6cd99 hit_for_pass in vcl_fetch

Tollef Fog Heen tfheen at varnish-cache.org
Wed Aug 17 11:29:02 CEST 2011


commit be6cd99791ae3b99f389e4c49e2ae6bf5322bacd
Author: Per Buer <perbu at varnish-software.com>
Date:   Wed Aug 17 10:10:07 2011 +0200

    hit_for_pass in vcl_fetch

diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index a16d7f5..c193e08 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -485,8 +485,12 @@ vcl_fetch
   error code [reason]
     Return the specified error code to the client and abandon the request.
 
-  pass
-    Switch to pass mode.  Control will eventually pass to vcl_pass.
+  hit_for_pass
+    Pass in fetch. This will create a hit_for_pass object. Note that
+    the TTL for the hit_for_pass object will be set to what the
+    current value of beresp.ttl. Control will be handled to
+    vcl_deliver on the current request, but subsequent requests will
+    go directly to vcl_pass based on the hit_for_pass object.
 
   restart
     Restart the transaction. Increases the restart counter. If the number 



More information about the varnish-commit mailing list