Date: Fri, 27 Nov 2015 07:59:28 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-pkg@freebsd.org Subject: Re: pkg and HTTP caches Message-ID: <20151127065928.GD939@ivaldir.etoilebsd.net> In-Reply-To: <20151127031348.GA81677@admin.sibptus.tomsk.ru> References: <20151127031348.GA81677@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--hxkXGo8AKqTJ+9QI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 27, 2015 at 09:13:48AM +0600, Victor Sudakov wrote: > Dear Colleagues, >=20 > 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=3D0" directive. >=20 > 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. >=20 > Any comments please? >=20 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 m= ight be giving you the old version and not the new one resulting in pkg rejectin= g the package because checksum mismatch with what it expects. Bapt --hxkXGo8AKqTJ+9QI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlZX/1AACgkQ8kTtMUmk6EyL+gCfS2N3c/BKb+fWCgXLb/ziDsUx L2wAnjgTmqFNkRU1ywPKzqqJ6lqyhPKm =4Pjn -----END PGP SIGNATURE----- --hxkXGo8AKqTJ+9QI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151127065928.GD939>