Hi Thomas,<div><br></div><div>Range requests and streaming are right now mutually exclusive features. If a range request comes in, it will loose it's do_stream flag. I am working on enabling the range support on streaming requests, and for the streaming case this means the clients will receive the range bytes at the time they become available on the stream (backend request still asks for the whole object). I hope to have something finished for this within a couple of weeks.</div>
<div><br></div><div>Allowing range requests against the backend and populating the cache from those bits is not something we are working on right now. It would then require ETAGs matching to guard against the backend object being altered over the life time of the cached object, and will require some heavy thinking to get right. We might look into doing this some time, but it is not in the plans right now.</div>
<div><br></div><div>Regards,</div><div>Martin Blix Grydeland</div><div><br><div class="gmail_quote">On Tue, Oct 4, 2011 at 18:10, Thomas SOUVIGNET <span dir="ltr"><<a href="mailto:thomas.souvignet@smartjog.com">thomas.souvignet@smartjog.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
Your work on the streaming features for varnish is great but I have a little problem using it for range caching. Is it possible for HTTP range requests to use the cache while the file was entirely cached ? How about when it is being retrieved and cached at the same time ? Is it possible to populate the cache just with range requests (ie. a file goes from 0 to 500, one client asks for 0-200, another one for 200-400 and another one for 400-500 and each request will be used to have the file entirely or partially cached while the requests are being served) ?<br>

<br>
Thanks for your work. And thanks in advance for your answer.<br><font color="#888888">
<br>
-- <br>
Thomas SOUVIGNET, R&E Engineer<br>
<br>
SmartJog SAS - <a href="http://www.smartjog.com" target="_blank">http://www.smartjog.com</a> - A TDF Group Company<br>
Office: 27, blvd Hippolyte Marques 94200 Ivry-sur-Seine - France EU<br>
Phone: <a href="tel:%2B33%20%280%291%205868%206207" value="+33158686207" target="_blank">+33 (0)1 5868 6207</a><br>
<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Martin Blix Grydeland<br>Varnish Software AS<br><br>
</div>