How to make Varnish not caching response if they do not have proper cache header?

Ryan Chan ryanchan404 at gmail.com
Mon Mar 26 12:55:01 CEST 2012


Hello,


On Sun, Mar 25, 2012 at 6:10 PM, Jonathan Matthews
<contact at jpluscplusm.com>wrote:

> On 25 March 2012 05:15, Ryan Chan <ryanchan404 at gmail.com> wrote:Your
> responses are probably being cached because of the default
> default_ttl setting, which you'll find detailed a little way down
>
> https://www.varnish-cache.org/docs/3.0/reference/varnishd.html#run-time-parameters
> .
>
>

1. I am wondering why `default_ttl of 120s is a good thing`, if the backend
don't specify the ttl, shouldn't just pass it and not cache it would be the
safest option? Hard coding 120s sound evil to me.
2. I am using 2.1, so sound like hard coding the ttl is the best choice
then?

Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120326/e136cec5/attachment.html>


More information about the varnish-misc mailing list