Serving stale items from cache

Erik Wickstrom erik at
Thu Sep 22 21:09:45 UTC 2011

I ended up using Varnish for this.  I set a long TTL for the cache,
and then another long "grace" period for those expired objects.  Then
I use a script to loop through all of my URLs and rewarm the cache
every few days.

Seems to be working.

On Thu, Sep 22, 2011 at 1:03 PM, stonor <nginx-forum at> wrote:
> I would love to see this too in Nginx.
> The pattern is described here:
> The only software I've seen this implemented in is Squid 2.7
> (stale-while-revalidate).
> From time to time I see backends taking 800ms+  to generate a page at
> low traffic. It would be nice to hide most of these requests to the end
> user.
> Posted at Nginx Forum:,214606,215654#msg-215654
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list