Hi,<br><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 12:01 AM, Jean-Christophe Petit <span dir="ltr"><<a href="mailto:jcpetit@syspark.com">jcpetit@syspark.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
is there a way in varnish-3.x to serve old content while fetching new one ?<br>
The goal is to avoid slowdown because of a slow backend.<br></blockquote><div><br></div><div>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 (<a href="https://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html">https://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html</a>) for some docs on how to do it. If you find any of the docs unclear, please let me know.</div>

<div><br></div></div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer, CEO<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>

<i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>