[PATCH] Drop old grace objects when we have a new object that matches the Vary

Artur Bergman sky at crucially.net
Fri Jan 6 18:47:16 CET 2012


On Jan 6, 2012, at 1:47 AM, Per Buer wrote:

> On Fri, Jan 6, 2012 at 4:22 AM, Rogier 'DocWilco' Mulhuijzen <github at bsdchicks.com> wrote:
> Also add EXP_Remove, to allow removing objects with touching them.
> 
> This patch makes it possible to have a very short TTL, but a long grace.
> Normally, if you were to set a 1s TTL and a 86400s grace, you would end
> up with 86400 objects on a single objecthead, not even taking into
> account Vary. With this patch, any object found in grace is kept with
> the request, and upon succesful retrieval of a new object from the
> backend, the grace object is removed.
> 
> Yes! Excellent work.
> 

It should be able to be modified for 304 if-modified too.

Artur


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20120106/43ea24cd/attachment.html>


More information about the varnish-dev mailing list