Making varnish cache only certain requests with multiple backends

Debraj Manna subharaj.manna at gmail.com
Mon May 23 07:35:57 CEST 2016


Thanks Dridi. One more doubt will the pass urls be counted as miss in the
varnish cache miss counter?
On May 19, 2016 7:08 PM, "Dridi Boukelmoune" <dridi at varni.sh> wrote:

> On Thu, May 19, 2016 at 2:55 PM, Debraj Manna <subharaj.manna at gmail.com>
> wrote:
> > Can you please explain a bit more what advantage I will have by using
> > return(pass). Are you saying if I use return(pipe) then the client's
> > subsequent request will start getting 404 Error?
>
> No, I mean that subsequent requests without "Type: p" on the same
> connection won't be seen by Varnish, they will go directly to the
> backend.
>
> >  My intention is if the header req.http.Type == "p" then i want to treat
> as
> > if varnish is not present for those requests and the request going
> straight
> > to backend.
>
> I understand that, and return(pass) will send the request to the
> backend, but return(pipe) will send the whole connection to the
> backend.
>
> Dridi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160523/8e9ad105/attachment.html>


More information about the varnish-misc mailing list