[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [patch] Enable proxy-caching for curl



ville skytta 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

Attachment: pgp00046.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]