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