<font face="verdana,sans-serif">I'm currently studying how to deploy varnish over a backend which responds to REST queries such as:<br><br><a href="http://myserver.com/myFile?range[0:50]">http://myserver.com/myFile?range[0:50]</a><br>

<br>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? Unfortunately every file I have is HUGE (I emailed this same mailing list sometime ago), above a GB, so it's no possible to cache multiple copies for each request.<br>

<br>Is it even possible to call some external software from varnish to slice the cached data before delivering it? I have a program capable of doing this slice, but I don't know how to call it in the context of a request inside varnish. I'm almost sure that I'll have to use inline C, but are there any documentation on this theme?<br>

<br><br>thanks,<br></font>Thiago Moraes - EnC 07 - UFSCar<br>