[PATCH] git-http-fetch: Allow caching of retrieved objects by proxy servers
authorSergey Vlasov <vsu@altlinux.ru>
Tue, 13 Sep 2005 15:38:58 +0000 (19:38 +0400)
committerJunio C Hamano <junkio@cox.net>
Thu, 15 Sep 2005 19:46:30 +0000 (12:46 -0700)
commit1db69b571c9eaab73a7b21303bfedda5fb5f31ce
treed35cce3d6bceba0064b430d2f1eab781520f0086
parentba65af9c1f67461c0dfa6582c911d6a893d80284
[PATCH] git-http-fetch: Allow caching of retrieved objects by proxy servers

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.

This patch removes the "Pragma: no-cache" header from requests for all
files except the pack list (objects/info/packs) and references
(refs/*), which are really mutable and should not be cached.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 3b2a4c46fd5093ec79fb60e1b14b8d4a58c74612 commit)
http-fetch.c