[Varnish] #930: Caching rules didn't work after upgrading to 2.1.5

Varnish varnish-bugs at varnish-cache.org
Fri Jun 3 04:37:29 CEST 2011


#930: Caching rules didn't work after upgrading to 2.1.5
---------------------------------+------------------------------------------
 Reporter:  pdah                 |        Type:  defect  
   Status:  new                  |    Priority:  high    
Milestone:  Varnish 2.1 release  |   Component:  varnishd
  Version:  2.1.5                |    Severity:  major   
 Keywords:                       |  
---------------------------------+------------------------------------------
 After upgrading Varnish from 2.1.0 to 2.1.5 on Ubuntu Lucid (10.04), some
 of my rules didn't work anymore. This is the configuration that worked
 with Varnish 2.1.0:

 {{{
 backend glassfish {
     .host = "localhost";
     .port = "8080";
 }

 sub vcl_recv {
   set req.backend = glassfish;

   if ( (req.request == "GET") && (req.url ~ "\.jsp") ) {
       return(lookup);
   }

   return(pass);
 }

 sub vcl_fetch {

     if ( (req.request == "GET") && (req.url ~  "\.jsp") ) {
         return(deliver);
     }

     return(pass);
 }
 }}}

 After upgrading to Varnish 2.1.5, requests to jsp files always go to
 backend (I checked it using varnishtop -i txurl)

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/930>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list