Force caching with return(pass)

Nicolas Delmas colas.delmas at gmail.com
Fri Nov 20 09:33:41 CET 2015


Hello,

I'm using varnish 4.1
I have a little problem I don't know how to solve.

In vcl_recv I have some rules with a return(pass) :
- if cookie "connected" exist
- for some image

But some url, for exemple an image, has 301 redirect. I want to cache this
301 even if I have a return(pass) in vcl_recv.
I want this 301 be cached for everyone because it's not necessary to send
request to the backend.
It's the same for 404.

Is it possble ? and how to do it ?

thank you

*Nicolas Delmas*
colas.delmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20151120/88c56557/attachment.html>


More information about the varnish-misc mailing list