Re: [PATCH] git-http-fetch: Allow caching of retrieved objects by proxy servers
- From
Sergey Vlasov <vsu@altlinux.ru>
- Date
- Sep 14, 2005, 13:12 UTC
- Message-ID
- <20050914131236.GH24405@master.mivlgu.local>
- In-Reply-To
- <7vfys93qn5.fsf@assigned-by-dhcp.cox.net>
On Tue, Sep 13, 2005 at 08:59:26AM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> Sergey Vlasov <vsu@altlinux.ru> writes: > > > 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. > > Thanks. What the patch does looks reasonable. > > Do you know if we can use it for any reasonably recent version > of curl? I seem to recall we already do things slightly > differently depending on LIBCURL_VERSION_NUM.
http://cool.haxx.se/cvs.cgi/curl/include/curl/curl.h?rev=1.1&content-type=text/vnd.viewcvs-markup shows that CURLOPT_HTTPHEADER, curl_slist_append() and curl_slist_free_all() were available in Dec 1999, curl 6.3.1. The FAQ entry about disabling "Pragma: no-cache" is from Aug 2, 2000.