On Wed, Aug 27, 2014 at 8:28 PM, Nils Goroll <[email protected]> wrote:
>
> 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);
> }
>
> ?
>
Absolutely. I think it would be great to expose this to the user. I'm not
sure if the term "maxage" is crystal clear (also because it is used to
denote relative time in Cache-control) but I cannot say I have better
suggestions at this point in time. Deadline, maybe?
--
<http://www.varnish-software.com/> *Per Buer*
CTO | Varnish Software
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
Winner of the Red Herring Top 100 Global Award 2013
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev