pkg and HTTP caches
Victor Sudakov
vas at mpeks.tomsk.su
Fri Nov 27 03:13:55 UTC 2015
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 at sibptus.tomsk.ru
More information about the freebsd-pkg
mailing list