Slicing cached data in a Varnish server

Per Buer perbu at
Wed Nov 2 09:44:50 CET 2011

On Wed, Nov 2, 2011 at 1:15 AM, Thiago Moraes <thiago at> wrote:

> I'm currently studying how to deploy varnish over a backend which responds
> to REST queries such as:
> Suppose that the maximum range from myFile is [0:100]. In case I cache the
> entire file, is there any way I can slice my data in my Varnish server so
> that I can handle requests to subsets of myFile without getting cache
> misses?

Can't you rewrite the request so it'll use the Range: header? That way
you'll only keep one copy. You'll have some latency on the first request as
Varnish will fetch the whole thing.

Per Buer, CEO
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <> |
Video<> |
Twitter <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list