Comment 7 for bug 120697

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 120697] Re: bzr shouldn't bypass http caches

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
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.