Using Range requests with cached files

Oliver Oli oliver.oli+0815 at gmail.com
Mon Jun 16 00:12:51 CEST 2008


Hello Poul-Henning,

good to know. Is there a way to cache partial responses anyway
(ignoring the fact that many requests for differing ranges would blow
up the cache)? I tried to add req.http.Range to req.hash, but I'm
oviously missing something, because it's not cached.

sub vcl_hash {
        set req.hash += req.url;
        set req.hash += req.http.Range;
        set req.hash += req.http.host;
        hash;
}




On Sun, Jun 15, 2008 at 11:14 PM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <66f535320806151328i14d1413eye00099634552cbdb at mail.gmail.com>, "Oliv
> er Oli" writes:
>>Hello,
>>
>>how does varnish handle Range request?
>
> "not at all"
>
> I have put it on the "things to do after 2.0" wiki page.



More information about the varnish-misc mailing list