If-Modified-Since
Artur Bergman
sky at crucially.net
Thu Feb 24 19:37:01 CET 2011
If someone does
set obj.ttl = 0s;
set obj.grace = 0s;
set obj.conditional_timeout = 60s;
what will happen?
artur
On Feb 24, 2011, at 9:34 AM, Poul-Henning Kamp wrote:
> In message <4D667A04.4070704 at uplex.de>, Geoff Simmons writes:
>
>> In the second case, there's actually no point in having
>> obj.conditional_timeout > obj.grace; an object is evicted when grace
>> elapses, no matter what. In that case, we should *not* do something we
>> were talking about last week:
>>
>>> - the cache eviction time for an object (oc->timer_when) becomes
>>> o->ttl + max(o->conditional_timeout, HSH_Grace(o->grace))
>
> I still think we should do it this way. If people want
> conditionnal_timeout == grace
> they can set them that way.
>
> But having them separate allows us to define additional policies,
> where objects can linger for longer in the hope they are reused.
>
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list