Making varnish cache only certain requests with multiple backends

Dridi Boukelmoune dridi at varni.sh
Thu May 19 15:37:41 CEST 2016


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



More information about the varnish-misc mailing list