Disable caching for a specific backend

Per Buer perbu at varnish-software.com
Mon Aug 2 16:43:21 CEST 2010


Hi,

On Mon, Aug 2, 2010 at 3:53 PM, zabrane Mikael <zabrane3 at gmail.com> wrote:

> Is there a way to tell varnish to "disable caching" all pages coming from a
> specific backend?

Yes. Just "pass" the requests in vcl_recv when setting the backend.

sub vcl_recv {
   if (req.host ~ "www.foo.com") {
     pass;
   }
}


-- 
Per Buer,  Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer




More information about the varnish-misc mailing list