Re: Strange behavior on varnish 5

2018-05-18 Thread Dridi Boukelmoune
On Thu, May 17, 2018 at 6:03 PM, Prem Kumar wrote: > Hit527698198 -0.990171 why it is a hit but ttl is negative > value 0.00 << Grace is 0 0.00 > - VCL_call HIT > > We set to zero. Are you actively setting it to zero? The default is

Re: Strange behavior on varnish 5

2018-05-17 Thread Prem Kumar
Hit527698198 *-0.990171 why it is a hit but ttl is negative value * *0.00 << Grace is 0* 0.00 - VCL_call HIT We set to zero. Thanks, Prem On Thu, May 17, 2018 at 9:15 PM, Guillaume Quintard < guilla...@varnish-software.com> wrote: > Hello, > > You are

Re: Strange behavior on varnish 5

2018-05-17 Thread Guillaume Quintard
Hello, You are discovering grace :-) https://varnish-cache.org/docs/trunk/users-guide/vcl-grace.html "set beresp.grace = 0s;" should do it. -- Guillaume Quintard On Thu, May 17, 2018 at 5:44 PM, Prem Kumar wrote: > Hi All, > > We are 2 behaviors on Varnish 5: > >

Strange behavior on varnish 5

2018-05-17 Thread Prem Kumar
Hi All, We are 2 behaviors on Varnish 5: - if we set ttl = 600s , we are seeing HIT is serving the content over 10s . Origin is not changing the content and we are NOT sending if_modified_since header. - VCL_return lookup - Hit527698198 *-0.990171 why it is a hit but