On Mon, 2007-11-26 at 20:41 +0000, John A Meinel wrote:
> As an aside, is squid smart enough to cache readv() requests? Does it
> just request the whole file, and then return the pieces?
>
> Otherwise, I'm guessing that Bazaar is still going to be unfriendly to
> caches, because it makes requests for pieces of the files. (which is
> sometimes the whole file, but the proxy wouldn't know whether 0-1111 is
> the whole file, or if there is a byte 1112.)
A sufficiently complex range will cause squid to read the whole file -
and serve later responses from cache (unless cache busting headers are
used).
If cache busting headers are used by the client it does not attempt to
process the ranges at all and just forwards them upstream.
On Mon, 2007-11-26 at 20:41 +0000, John A Meinel wrote:
> As an aside, is squid smart enough to cache readv() requests? Does it
> just request the whole file, and then return the pieces?
>
> Otherwise, I'm guessing that Bazaar is still going to be unfriendly to
> caches, because it makes requests for pieces of the files. (which is
> sometimes the whole file, but the proxy wouldn't know whether 0-1111 is
> the whole file, or if there is a byte 1112.)
A sufficiently complex range will cause squid to read the whole file -
and serve later responses from cache (unless cache busting headers are
used).
If cache busting headers are used by the client it does not attempt to
process the ranges at all and just forwards them upstream.
-Rob www.robertcolli ns.net/ keys.txt>.
--
GPG key available at: <http://