From owner-freebsd-pkg@freebsd.org Mon Nov 23 21:59:28 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 E062FA36451 for ; Mon, 23 Nov 2015 21:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C63031575 for ; Mon, 23 Nov 2015 21:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C1D93A36450; Mon, 23 Nov 2015 21:59:28 +0000 (UTC) Delivered-To: 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 C07B9A3644F for ; Mon, 23 Nov 2015 21:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5B581574 for ; Mon, 23 Nov 2015 21:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tANLxSt0050905 for ; Mon, 23 Nov 2015 21:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 203883] ports-mgmt/pkg: Bad error message Date: Mon, 23 Nov 2015 21:59:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 23 Nov 2015 21:59:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203883 Baptiste Daroussin changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-pkg@freebsd.org Mon Nov 23 22:00:05 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 5FD1AA36482 for ; Mon, 23 Nov 2015 22:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 454F915B3 for ; Mon, 23 Nov 2015 22:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4349AA36481; Mon, 23 Nov 2015 22:00:05 +0000 (UTC) Delivered-To: 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 42E4AA36480 for ; Mon, 23 Nov 2015 22:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3034615B2 for ; Mon, 23 Nov 2015 22:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tANM05GB053333 for ; Mon, 23 Nov 2015 22:00:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 204151] ports-mgmt/pkg: Typo in pkg(8) man page Date: Mon, 23 Nov 2015 22:00:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: merge-quarterly? X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 23 Nov 2015 22:00:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204151 Baptiste Daroussin changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-pkg@freebsd.org Tue Nov 24 10:41:47 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 189BBA36482 for ; Tue, 24 Nov 2015 10:41:47 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 02FC8158F for ; Tue, 24 Nov 2015 10:41:47 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 01AC6A3647C; Tue, 24 Nov 2015 10:41:47 +0000 (UTC) Delivered-To: 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 014A2A3647B for ; Tue, 24 Nov 2015 10:41:47 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.freebsd.org (portscout.freebsd.org [IPv6:2001:1900:2254:206a::50:6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E6B9E158D for ; Tue, 24 Nov 2015 10:41:46 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.freebsd.org ([127.0.1.123]) by portscout.freebsd.org (8.15.2/8.15.2) with ESMTP id tAOAfk0u013474 for ; Tue, 24 Nov 2015 10:41:46 GMT (envelope-from portscout@FreeBSD.org) Received: (from portscout@localhost) by portscout.freebsd.org (8.15.2/8.15.2/Submit) id tAOAfkSg013473; Tue, 24 Nov 2015 10:41:46 GMT (envelope-from portscout@FreeBSD.org) Message-Id: <201511241041.tAOAfkSg013473@portscout.freebsd.org> X-Authentication-Warning: portscout.freebsd.org: portscout set sender to portscout@FreeBSD.org using -f Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 Date: Tue, 24 Nov 2015 10:41:46 +0000 From: portscout@FreeBSD.org To: pkg@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 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: Tue, 24 Nov 2015 10:41:47 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/pkg@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ ports-mgmt/pkg | 1.6.2 | 1.6.99.2 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt Thanks. From owner-freebsd-pkg@freebsd.org Tue Nov 24 10:44:55 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 149F9A365A5 for ; Tue, 24 Nov 2015 10:44:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EC9611860 for ; Tue, 24 Nov 2015 10:44:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EB58AA365A3; Tue, 24 Nov 2015 10:44:54 +0000 (UTC) Delivered-To: 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 EAF2DA365A2 for ; Tue, 24 Nov 2015 10:44:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D6D18185F for ; Tue, 24 Nov 2015 10:44:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAOAisUs019197 for ; Tue, 24 Nov 2015 10:44:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 204570] pkg(8) needs an option to prevent fetching packages via the network Date: Tue, 24 Nov 2015 10:44:55 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 24 Nov 2015 10:44:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204570 Baptiste Daroussin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #2 from Baptiste Daroussin --- Implemented in git -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug. From owner-freebsd-pkg@freebsd.org Fri Nov 27 03:13:55 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 B3FC5A38DCF for ; Fri, 27 Nov 2015 03:13:55 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 23021120D for ; Fri, 27 Nov 2015 03:13:53 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.TOMSK.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38982430 for freebsd-pkg@freebsd.org; Fri, 27 Nov 2015 09:13:50 +0600 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7) with ESMTP id tAR3DmhX082222 for ; Fri, 27 Nov 2015 09:13:50 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.9/8.14.7/Submit) id tAR3DmAE082221 for freebsd-pkg@freebsd.org; Fri, 27 Nov 2015 09:13:48 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 27 Nov 2015 09:13:48 +0600 From: Victor Sudakov To: freebsd-pkg@freebsd.org Subject: pkg and HTTP caches Message-ID: <20151127031348.GA81677@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 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 03:13:55 -0000 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? GET http://pkgmir.pkg.freebsd.org/FreeBSD:10:amd64/quarterly/All/libiconv-1.14_8.txz HTTP/1.1 Host: pkgmir.pkg.freebsd.org Accept: */* User-Agent: pkg/1.6.1 Connection: close HTTP/1.1 200 OK Server: nginx Date: Thu, 26 Nov 2015 17:07:32 GMT Content-Type: application/octet-stream Content-Length: 606196 Last-Modified: Thu, 05 Nov 2015 01:19:00 GMT ETag: "563aae84-93ff4" Expires: Thu, 26 Nov 2015 17:07:32 GMT Cache-Control: max-age=0 Cache-Control: private Accept-Ranges: bytes X-Cache: MISS from proxy.sibptus.ru X-Cache-Lookup: MISS from proxy.sibptus.ru:3128 Via: 1.1 proxy.sibptus.ru (squid/3.5.11) Connection: close -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru 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-- From owner-freebsd-pkg@freebsd.org Fri Nov 27 08:05:18 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 14219A3A8A6 for ; Fri, 27 Nov 2015 08:05:18 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id D14691F88; Fri, 27 Nov 2015 08:05:16 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.TOMSK.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38982942; Fri, 27 Nov 2015 14:05:14 +0600 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7) with ESMTP id tAR85CDJ091452; Fri, 27 Nov 2015 14:05:14 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.9/8.14.7/Submit) id tAR85C35091451; Fri, 27 Nov 2015 14:05:12 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 27 Nov 2015 14:05:12 +0600 From: Victor Sudakov To: Baptiste Daroussin Cc: freebsd-pkg@freebsd.org Subject: Re: pkg and HTTP caches Message-ID: <20151127080512.GA89598@admin.sibptus.tomsk.ru> References: <20151127031348.GA81677@admin.sibptus.tomsk.ru> <20151127065928.GD939@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151127065928.GD939@ivaldir.etoilebsd.net> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 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 08:05:18 -0000 Baptiste Daroussin wrote: > > > > 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) This process should result in the modification time of the package file being updated. After all, a FreeBSD packages repository is just a Web server serving static files from the disk, isn't it? At least my personal repository surely is. > 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. Isn't that what we have the "Last-Modified:" HTTP header for? A caching proxy should consider an object stale if its modification time on the Web server has changed. Please correct me if I am wrong. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru