From owner-freebsd-pkg@freebsd.org Fri Nov 27 06:59:33 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 301EBA39795 for ; Fri, 27 Nov 2015 06:59:33 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B309512BC for ; Fri, 27 Nov 2015 06:59:32 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wmww144 with SMTP id w144so43793920wmw.1 for ; Thu, 26 Nov 2015 22:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=dnXtYd2W+7/MS5JItaABOhIrsxQFrLiqbA9vuWCfYFA=; b=HuEaetv52kQYvmP9dohO5Py10sT1le4QH3MC7js1sAuekFjO122KI6MKeJxNAqhbQd AXdrQthm81j5MIWC+pmDoUBJcin1GWf0QEpMYjbguAhdA0Kg1hE5z94utpNIA36rYjKX s3UreKmsTYnhqEio6QkpZ6vbzXK6mA35RLKm0DVF2lXf2AHzSCTIB0Eau+Nlg3Exmssl zFkucAToA0+Oe1f17gF14a/YwNDayOyDv8G8vqa4i8oVkyxRz9hVDA9hFmrOb4xf3lGJ hAJKx3b7/ri1oELnwUCNnrbjCcPeFzc1nUFTIFp9Y3pucAMA72H3Pd0vGpf/3z2p8jdJ CfSQ== X-Received: by 10.28.188.198 with SMTP id m189mr8103275wmf.81.1448607571166; Thu, 26 Nov 2015 22:59:31 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id gj2sm31266015wjb.40.2015.11.26.22.59.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 22:59:30 -0800 (PST) Sender: Baptiste Daroussin Date: Fri, 27 Nov 2015 07:59:28 +0100 From: Baptiste Daroussin To: Victor Sudakov Cc: freebsd-pkg@freebsd.org Subject: Re: pkg and HTTP caches Message-ID: <20151127065928.GD939@ivaldir.etoilebsd.net> References: <20151127031348.GA81677@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hxkXGo8AKqTJ+9QI" Content-Disposition: inline In-Reply-To: <20151127031348.GA81677@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2015 06:59:33 -0000 --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--