<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Varnish takes care of the s-maxage, you have to send it on your header to specify the duration of the TTL</div><div><br></div><div>Best.</div><div><br></div><div><br>Sent from my iPhone</div><div><br>On 8 oct. 2012, at 10:45, Aanchal Gera <<a href="mailto:aanchal.gera@gmail.com">aanchal.gera@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><font color="#006600"><font face="tahoma,sans-serif">Ohh, Is it!!!</font></font><div><font color="#006600"><font face="tahoma,sans-serif"><br></font></font></div><div><font color="#006600"><font face="tahoma,sans-serif">So, what would be the best way to tell Varnish that I don't want to cache an ESI fragment?</font></font></div>
<div><font color="#006600"><font face="tahoma,sans-serif"><br></font></font></div><div><font color="#006600"><font face="tahoma,sans-serif">Regards,</font></font></div><div><font color="#006600"><font face="tahoma,sans-serif">Aanchal<br>
</font></font><br><div class="gmail_quote">On Mon, Oct 8, 2012 at 2:08 PM, Andreas Plesner Jacobsen <span dir="ltr"><<a href="mailto:apj@mutt.dk" target="_blank">apj@mutt.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Oct 08, 2012 at 02:03:55PM +0530, Aanchal Gera wrote:<br>
><br>
> I have set the Cache-Control directives as "no-cache" for an ESI fragment.<br>
> Even then, I receive a HIT from Varnish. How is this possible?<br>
<br>
</div>You'll have to implement no-cache in VCL yourself, it's not honored by default.<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" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</font></span></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>varnish-misc mailing list</span><br><span><a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a></span><br><span><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></span></div></blockquote></body></html>