No-cache but still a HIT

Omega BK omegabk at gmail.com
Mon Oct 8 12:20:27 CEST 2012


Varnish takes care of the s-maxage, you have to send it on your header to specify the duration of the TTL

Best.


Sent from my iPhone

On 8 oct. 2012, at 10:45, Aanchal Gera <aanchal.gera at gmail.com> wrote:

> Ohh, Is it!!!
> 
> So, what would be the best way to tell Varnish that I don't want to cache an ESI fragment?
> 
> Regards,
> Aanchal
> 
> On Mon, Oct 8, 2012 at 2:08 PM, Andreas Plesner Jacobsen <apj at mutt.dk> wrote:
>> On Mon, Oct 08, 2012 at 02:03:55PM +0530, Aanchal Gera wrote:
>> >
>> > I have set the Cache-Control directives as "no-cache" for an ESI fragment.
>> > Even then, I receive a HIT from Varnish. How is this possible?
>> 
>> You'll have to implement no-cache in VCL yourself, it's not honored by default.
>> 
>> --
>> Andreas
>> 
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121008/042d01aa/attachment.html>


More information about the varnish-misc mailing list