<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sorry for the top post (outlook at work). Sounds like you need
to prime the cache with a script so your clients don’t get “first request”
syndrome. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Stefan Caunter :: Senior Systems Administrator :: TOPS<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>e: scaunter@topscms.com  ::  m: (416) 561-4871<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>www.thestar.com www.topscms.com<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> varnish-misc-bounces@varnish-cache.org
[mailto:varnish-misc-bounces@varnish-cache.org] <b>On Behalf Of </b>Bjarni
Rúnar Einarsson<br>
<b>Sent:</b> November-09-10 2:23 PM<br>
<b>To:</b> varnish-misc@varnish-cache.org<br>
<b>Subject:</b> Is Varnish useless with slow/remote back-ends & large
files?<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Hi!<br>
<br>
I am attempting to use Varnish in a somewhat unusual fashion, and before I give
up and drop it for something else, I figured I'd describe my problem here and
see if there's something I've missed.<br>
<br>
What I am doing is implementing a service (<a href="http://pagekite.net/">http://pagekite.net/</a>)
to provide a "remote HTTP front-end" for people who want to run
webservers off a personal computing device (possibly even a mobile device).
I've got a nice proxy/tunnel solution up and running, and want to add some
caching in the front-end to lighten the load on the back-end server and more
importantly the tunnel to the back-end, which may be quite bandwidth
constrained.<br>
<br>
At the moment it seems Varnish is effectively useless for this, because it
can't both cache and stream at the same time - it does one or the other, right?<br>
<br>
This means when a client downloads a large file, things just hang while the
whole thing gets transferred (over a slow link) to Varnish, likely even timing
out. I can't automatically stream it anyway, as the only trick I've seen to
switch to "pipe" mode for large content is to "restart"
based on the content-length header, which means the object will be sent twice -
doubling the load on exactly the link I'm trying to spare. The closest I can
get is to automatically switch to "pipe" for certain paths based on
URL regular expressions, which avoids the sloth and timeouts but provides no
caching benefits and will still do the wrong thing for some large files.<br>
<br>
Varnish is quite an awesome piece of software, but I'm getting the feeling that
it just wasn't designed for my (admittedly unusual) environment. I'd love to be
proven wrong!<br>
<br>
Thanks... :-)<br>
<br>
-- <br>
Bjarni R. Einarsson<br>
The Beanstalks Project ehf.<br>
<br>
Making personal web-pages fly: <a href="http://pagekite.net/" target="_blank">http://pagekite.net/</a><o:p></o:p></p>

</div>

</body>

</html>