pkg and HTTP caches
Baptiste Daroussin
bapt at FreeBSD.org
Fri Nov 27 06:59:33 UTC 2015
On Fri, Nov 27, 2015 at 09:13:48AM +0600, Victor Sudakov wrote:
> Dear Colleagues,
>
> While accessing the FreeBSD package database via a corporate HTTP
> proxy, I have noticed that all fetches are cache misses (see below). I
> think this is because of the "Cache-Control: max-age=0" directive.
>
> While I can probably understand the reason to never cache repository
> metadata, I completely fail to see what the problem is with caching
> packages proper. Taking into account the amount of packages I install
> and upgrade on several identical systems, caching them would
> sufficiently save bandwidth.
>
> Any comments please?
>
The problem is some packages can be rebuilt with nothing changing (we do not
have reproducible build yet) meaning if you have a cache proxy, the proxy might
be giving you the old version and not the new one resulting in pkg rejecting the
package because checksum mismatch with what it expects.
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20151127/99b774be/attachment.bin>
More information about the freebsd-pkg
mailing list