<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<br><br>I'm running varnish 2.0.6 under centos 5.4:<br><br>varnish-libs-2.0.6-2.el5<br>varnish-2.0.6-2.el5<br><br>I'm setting up a media server and would like to use varnish for caching some of the heavily requested medias (mp3, mp4 ... ).<br><br>I've a few questions regarding media broadcasting with varnish.<br><br>mp3: progressive download is used in order to read mp3 from the webpages, is it foreseen to have a function to would allow providing the media before it gets completely retrieved by varnish from the backend ?<br><br>mp4: how is handled Accept-range field in the header, does varnish supports it ?<br>Trying to retrieve a mp4 file from apache gives me the following response:<br>HTTP/1.1 200 OK<br>Date: Tue, 15 Jun 2010 14:24:46 GMT<br>Server: Apache<br>Last-Modified: Mon, 14 Jun 2010 18:01:41 GMT<br>ETag: "2d4d6-1c7d167-4890147e4eb40"<br>Accept-Ranges: bytes<br>Content-Length: 29872487<br>Content-Type: text/plain; charset=UTF-8<br><br>with varnish in the middle:<br>HTTP/1.1 200 OK<br>Server: Apache<br>Last-Modified: Mon, 14 Jun 2010 18:01:41 GMT<br>ETag: "2d4d6-1c7d167-4890147e4eb40"<br>Content-Type: text/plain; charset=UTF-8<br>Content-Length: 29872487<br>X-ece-cache: server-01-03.arteria.tsr<br>Cache-Control: max-age=43200<br>X-ece-was-cached: media: 12h and max-age=43200, age 0<br>Date: Tue, 15 Jun 2010 14:26:15 GMT<br>X-Varnish: 321078687 321076768<br>Via: 1.1 varnish<br>Connection: keep-alive<br>Age: 0<br><br>The Accept-Ranges field is lost, do you know why ?<br><br><br><br>Jean-Francois Laurens<br><a href="mailto:pavionove@hotmail.com">pavionove@hotmail.com</a><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="color: rgb(102, 102, 102); font-family: Arial; font-size: 10px; ">Jean-François Laurens</span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 10px; "><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">Ingénieur Système Unix</font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial"><br></font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="'Arial Black'"><b>RTS - radio télévision suisse</b></font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">Quai Ernest-Ansermet 20</font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">Case Postale 234</font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">CH-1211 Genève 8</font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial"><br></font></font></div><div><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">T +41</font></font><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial"> (0)</font></font><font class="Apple-style-span" color="#666666"><font class="Apple-style-span" face="Arial">22 708 8163</font></font></div></span></div></div></span></div></span></div></span></div></span></span>
</div>
<br></body></html>