[4.0] a9716fe Use bereq.url within vcl_backend_response

Federico G. Schwindt fgsch at lodoss.net
Tue Jun 24 11:31:37 CEST 2014


commit a9716fe5ba673ed32f4eaeffd17ae65bbe4381e7
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Apr 16 17:03:26 2014 +0100

    Use bereq.url within vcl_backend_response
    
    Pointed out by dharrigan in #varnish.

diff --git a/doc/sphinx/users-guide/increasing-your-hitrate.rst b/doc/sphinx/users-guide/increasing-your-hitrate.rst
index a413b71..231e27b 100644
--- a/doc/sphinx/users-guide/increasing-your-hitrate.rst
+++ b/doc/sphinx/users-guide/increasing-your-hitrate.rst
@@ -273,7 +273,7 @@ You need VCL to identify the objects you want and then you set the
 'beresp.ttl' to whatever you want::
 
     sub vcl_backend_response {
-        if (req.url ~ "^/legacy_broken_cms/") {
+        if (bereq.url ~ "^/legacy_broken_cms/") {
             set beresp.ttl = 5d;
         }
     }



More information about the varnish-commit mailing list