<div dir="ltr">So I need to move all my rules from vcl_recv to vcl_backend_response ? If I do this what could be the consequence ? Some error to cache ? performance ? <div><br></div><div>Thank you</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div><font color="#3366ff"></font> </div><div><b><font color="#3366ff"></font></b> </div><div><b><font color="#3366ff">Nicolas Delmas</font></b></div><div><a href="mailto:colas.delmas@gmail.com" target="_blank">colas.delmas@gmail.com</a></div></div></div>
<br><div class="gmail_quote">2015-11-20 9:43 GMT+01:00 Andreas Plesner <span dir="ltr"><<a href="mailto:apj@mutt.dk" target="_blank">apj@mutt.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Nov 20, 2015 at 09:33:41AM +0100, Nicolas Delmas wrote:<br>
><br>
> But some url, for exemple an image, has 301 redirect. I want to cache this<br>
> 301 even if I have a return(pass) in vcl_recv.<br>
> I want this 301 be cached for everyone because it's not necessary to send<br>
> request to the backend.<br>
> It's the same for 404.<br>
><br>
> Is it possble ? and how to do it ?<br>
<br>
</span>No. Don't pass in recv. For uncacheable items, set beresp.uncacheable and a<br>
positive ttl in backend_response instead.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Andreas<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</font></span></blockquote></div><br></div>