Slicing cached data in a Varnish server

Per Buer perbu at varnish-software.com
Wed Nov 2 09:44:50 CET 2011


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

> I'm currently studying how to deploy varnish over a backend which responds
> to REST queries such as:
>
> http://myserver.com/myFile?range[0:50]
>
> 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 <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111102/80b4b596/attachment-0003.html>


More information about the varnish-misc mailing list