Re: [PATCH] git-http-fetch: Allow caching of retrieved objects byproxy servers
- From
- David Lang <david.lang@digitalinsight.com>
- Date
- Sep 19, 2005, 00:23 UTC
- Message-ID
- <Pine.LNX.4.62.0509181720290.14003@qynat.qvtvafvgr.pbz>
- In-Reply-To
- <43285B24.7050907@b-i-t.de>
On Wed, 14 Sep 2005, sf wrote:
Show 8 quoted lines
> Sergey Vlasov wrote: >> By default the curl library adds "Pragma: no-cache" header to all >> requests, which disables caching by proxy servers. However, most >> files in a GIT repository are immutable, and caching them is safe and >> could be useful. > > Is caching really safe? Because of compression one git object can have many > file representations.
only if you use different compression algorithums.
remember that git objects are identified by their sha1, if the sha1 is what you want (and the file matches the sha1 after you decompress it) then it really doesn't matter what it's on-disk representation is.
David Lang
-- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare