Does the browser need to support this explicitly?<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 4:24 AM, Kristian Lyngstol <span dir="ltr"><<a href="mailto:kristian@varnish-software.com">kristian@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Aug 29, 2011 at 12:52:05PM -0400, Drew wrote:<br>
</div><div class="im">> A Varnish fetch to the back-end takes longer than not having varnish<br>
> at all. Is this normal and if so is there a way to speed up cache<br>
> misses?<br>
<br>
</div>Like the others have pointed out, a bit of overhead is natural.<br>
<br>
However, there is one big factor here so far left unmentioned.<br>
<br>
Varnish, by default, will fetch an entire object before it starts<br>
sending it to the client. For a slow object (a large object fetched from<br>
a slow web server, for instance), this will add a significant delay.<br>
<br>
However, with Varnish 3.0.0, Varnish can stream these objects when there<br>
is a cache miss or a pass. That means Varnish will start sending the<br>
data to the client as the data arrives from the web server. This is not<br>
enabled by default, and requires beresp.do_stream = true;.<br>
<br>
Note that this doesn't apply to busy objects. In other words: if a<br>
client is already fetching an object, and an other client requests the<br>
same object, the first client will get the data on-the-fly, while the<br>
second client has to wait.<br>
<br>
Support for full streaming is work in progress and a working<br>
implementation exists, though it is not yet merged with the master<br>
branch.<br>
<font color="#888888"><br>
- Kristian<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br>