Byte range and varnish

Jean-Francois Laurens jean-francois.laurens at rts.ch
Thu Jun 17 15:00:16 CEST 2010


Hi,

I'm running varnish 2.0.6 under centos 5.4:

varnish-libs-2.0.6-2.el5
varnish-2.0.6-2.el5

I'm setting up a media server and would like to use varnish for caching some of the heavily requested medias (mp3, mp4 ... ).

I've a few questions regarding media broadcasting with varnish.

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 ?

mp4: how is handled Accept-range field in the header, does varnish supports it ?
Trying to retrieve a mp4 file from apache  gives me the following response:
HTTP/1.1 200 OK
Date: Tue, 15 Jun 2010 14:24:46 GMT
Server: Apache
Last-Modified: Mon, 14 Jun 2010 18:01:41 GMT
ETag: "2d4d6-1c7d167-4890147e4eb40"
Accept-Ranges: bytes
Content-Length: 29872487
Content-Type: text/plain; charset=UTF-8

with varnish in the middle:
HTTP/1.1 200 OK
Server: Apache
Last-Modified: Mon, 14 Jun 2010 18:01:41 GMT
ETag: "2d4d6-1c7d167-4890147e4eb40"
Content-Type: text/plain; charset=UTF-8
Content-Length: 29872487
X-ece-cache: server-01-03.arteria.tsr
Cache-Control: max-age=43200
X-ece-was-cached: media: 12h and max-age=43200, age 0
Date: Tue, 15 Jun 2010 14:26:15 GMT
X-Varnish: 321078687 321076768
Via: 1.1 varnish
Connection: keep-alive
Age: 0

The Accept-Ranges field is lost, do you know why ?



Jean-Francois Laurens
pavionove at hotmail.com
Jean-François Laurens
Ingénieur Système Unix

RTS - radio télévision suisse
Quai Ernest-Ansermet 20
Case Postale 234
CH-1211 Genève 8

T +41 (0)22 708 8163

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100617/8d86478e/attachment-0003.html>


More information about the varnish-misc mailing list