<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 11:49 AM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Tue, Apr 22, 2014 at 11:21 AM, Poul-Henning Kamp <span dir="ltr"><<a href="mailto:phk@phk.freebsd.dk" target="_blank">phk@phk.freebsd.dk</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In message <CAOXZevBTrbUf7HGD=S-pH7k5Kchm5akj5F+vQCcXXap=<a href="mailto:mM%2BqnA@mail.gmail.com" target="_blank">mM+qnA@mail.gmail.com</a>><br>



, Per Buer writes:<br>
<br>
>moseleymark <<a href="https://www.varnish-cache.org/users/moseleymark" target="_blank">https://www.varnish-cache.org/users/moseleymark</a>> in the forum,<br>
<div>>commented that Varnish responds with a "200 OK" when responding to ranged<br>
>requests. Looking at the tests, that seems to be desired behavior.<br>
<br>
</div>Test-case c00034 tells me that Varnish correctly responds with 206 if<br>
it does respect the range, and 200 otherwise ?<br>
<br>
Do you have a case where this is not the case ?<br></blockquote><div><br></div></div><div>User error. Both the user reporting it and I had syntax errors on the ranged requests and Varnish correctly responded with the whole content and a 200 error.</div>


<div><br></div><div>Move along. Nothing to see.</div></div></div></div></blockquote><div><br></div><div>The source of my confusion is that Varnish will respond with a "200 OK" on a ranged request and give the whole document on a cache miss, whereas it will respond as expected with the range on a cache hit.</div>

<div><br></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">

<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>

<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CTO | Varnish Software<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>

<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Global Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">

<img src="https://www.varnish-software.com/sites/default/files/redherring_2013_winner_sml.jpg"></p><span style="font-weight:bold"><br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

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