sending old content while fetching

Per Buer perbu at varnish-software.com
Fri Aug 19 09:03:10 CEST 2011


Hi,

On Fri, Aug 19, 2011 at 12:01 AM, Jean-Christophe Petit <jcpetit at syspark.com
> 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 (
https://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html)
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 <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110819/1ca3dd36/attachment-0003.html>


More information about the varnish-misc mailing list