what is the ttl?
Nils Goroll
slink at schokola.de
Wed Aug 27 20:28:36 CEST 2014
On 27/08/14 09:23, Per Buer wrote:
>
> If obj.ttl could reflect the real ttl and obj.age is exposed then we could have
> vcl_hit look like:
>
> if (obj.ttl - obj.age >= 0s) {
> return (deliver);
> }
> if (obj.ttl + obj.grace - obj.age > 0s) {
> // Object is in grace, deliver it
> // Automatically triggers a background fetch
> return (deliver);
> }
>
would it work for you if you could write this as
if (obj.maxage - obj.age >= 0s) {
return (deliver);
}
if (obj.maxage + obj.grace - obj.age > 0s) {
// Object is in grace, deliver it
// Automatically triggers a background fetch
return (deliver);
}
?
More information about the varnish-dev
mailing list