[patch] Enable proxy-caching for curl

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Tue Feb 15 17:37:51 UTC 2005


ville.skytta at iki.fi (Ville Skyttä) writes:

>> I have attached a small patch which prevents 'curl' from sending a
>> 'Pragma: no-cache' header. With this patch, subsequent 'make clean &&
>> make i386' will download the tarballs only once.
>
> But "make clean" removes the tarball, no?

Yes, but the next 'make' will take the tarball from the proxy, which is
cheaper and faster than downloading it from the fedora server.

E.g. currently I get:

| $ make
| --> 1108488444.156   8639 kosh.ultra.csn.tu-chemnitz.de TCP_MISS/200 152497 GET ....
| 
| $ make clean
| $ make
| --> 1108488476.676   1643 kosh.ultra.csn.tu-chemnitz.de TCP_CLIENT_REFRESH_MISS/200 152497 GET ...

--> the file was downloaded twice


Applying my patch results into

| $ make clean
| $ make
| --> 1108488572.244      9 kosh.ultra.csn.tu-chemnitz.de TCP_MEM_HIT/200 152505 GET ...

--> the file was taken from the cache




Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20050215/a491e6f0/attachment.sig>


More information about the fedora-extras-list mailing list