sending old content while fetching

Per Buer perbu at
Fri Aug 19 09:03:10 CEST 2011


On Fri, Aug 19, 2011 at 12:01 AM, Jean-Christophe Petit <jcpetit at
> wrote:

> Hello,
> is there a way in varnish-3.x to serve old content while fetching new one ?
> The goal is to avoid slowdown because of a slow backend.

Yes. This functionality is called "grace". The one limitation that exists is
that the client requesting the new content will be kept waiting. While that
client is waiting all the others will get the new content. You can have a
look at "man vcl" or the varnish tutorial (
for some docs on how to do it. If you find any of the docs unclear, please
let me know.

Per Buer, CEO
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <> |
Video<> |
Twitter <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list