Package: approx
Version: 5.5-1
Severity: important
Dear Maintainer,
I have used approx for years to service a variety of Debian and Ubuntu
computers. Recently I was trying to upgrade several computers and I noticed
that I was downloading the packages off the net repeatedly and my rather
pathetic DSL speed instead of getting files from my local server's cache at 11+
MBps. apt seems to imply that approx is working properly, e.g.
Get:1 http://server:/security/ jessie/updates/main perl amd64
5.20.2-3+deb8u10
I enabled verbose logging in /etc/approx/approx.conf /var/log/syslog seems to
report that some of the files are being delivered from the cache and some are
not. My experience is that the vast majority are not being cached, while some
packages download at normal fast LAN speed. Here is a snippet of the syslog:
May 4 20:41:22 server approx[28108]: close cache
debian/pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb
May 4 20:41:22 server approx[28108]: setting mtime to Tue, 17 Apr 2018
15:28:42 GMT
May 4 20:41:22 server approx[28108]:
http://mirrors.kernel.org/debian//pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb:
delivered
May 4 20:41:22 server approx[28108]: Connection from 192.168.1.101 port 34662
May 4 20:41:22 server approx[28108]: Request: GET
/debian/pool/main/l/linux-latest/linux-image-amd64_4.9%2b80%2bdeb9u4%7ebpo8%2b1_amd64.deb
May 4 20:41:22 server approx[28108]: Host: server:
May 4 20:41:22 server approx[28108]: User-Agent: Debian APT-HTTP/1.3
(1.0.9.8.4)
May 4 20:41:22 server approx[28108]: => cache miss
May 4 20:41:22 server approx[28108]: Command: /usr/bin/curl --fail --silent
--header "Pragma: no-cache" --include
"http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb;
May 4 20:41:23 server approx[28108]: HTTP/1.1 200 OK
May 4 20:41:23 server approx[28108]: Server: nginx
May 4 20:41:23 server approx[28108]: Date: Sat, 05 May 2018 03:41:22 GMT
May 4 20:41:23 server approx[28108]: Content-Type: application/octet-stream
May 4 20:41:23 server approx[28108]: Content-Length: 7332
May 4 20:41:23 server approx[28108]: Last-Modified: Sun, 22 Apr 2018
14:59:59 GMT
May 4 20:41:23 server approx[28108]: Accept-Ranges: bytes
May 4 20:41:23 server approx[28108]: X-Frame-Options: DENY
May 4 20:41:23 server approx[28108]: X-Content-Type-Options: nosniff
May 4 20:41:23 server approx[28108]: open cache
debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb
May 4 20:41:23 server approx[28108]: Proxy response
May 4 20:41:23 server approx[28108]: Content-Type: text/plain
May 4 20:41:23 server approx[28108]: Status: 200
May 4 20:41:23 server approx[28108]: Last-Modified: Sun, 22 Apr 2018
14:59:59 GMT
May 4 20:41:23 server approx[28108]: Content-Length: 7332
May 4 20:41:23 server approx[28108]: close cache
debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb
May 4 20:41:23 server approx[28108]: setting mtime to Sun, 22 Apr 2018
14:59:59 GMT
May 4 20:41:23 server approx[28108]:
http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb:
delivered
May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May 4 20:41:23 server approx[28108]: Request: GET
/security/pool/updates/main/l/linux/linux-libc-dev_3.16.56-1_amd64.deb
May 4 20:41:23 server approx[28108]: Host: server:
May 4 20:41:23 server approx[28108]: User-Agent: Debian APT-HTTP/1.3
(1.0.9.8.4)
May 4 20:41:23 server approx[28108]: => delivering from cache
May 4 20:41:23 server approx[28108]: Local response
May 4 20:41:23 server approx[28108]: Last-Modified: Mon, 30 Apr 2018
08:57:06 GMT
May 4 20:41:23 server approx[28108]: Content-Type: text/plain
May 4 20:41:23 server approx[28108]: Content-Length: 1096066
May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May 4 20:41:23 server approx[28108]: Request: GET
/security/pool/updates/main/m/mysql-5.5/mysql-server-core-5.5_5.5.60-0%2bdeb8u1_amd64.deb
May 4 20:41:23 server approx[28108]: Host: server:
May 4 20:41:23 server approx[28108]: User-Agent: Debian APT-HTTP/1.3
(1.0.9.8.4)
May 4 20:41:23 server approx[28108]: => delivering from cache
May 4 20:41:23 server approx[28108]: Local response
May 4 20:41:23 server approx[28108]: Last-Modified: Thu, 19 Apr 2018
10:28:18 GMT
May 4 20:41:23 server approx[28108]: Content-Type: text/plain
May 4 20:41:23 server approx[28108]: Content-Length: 3416750
May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May 4 20:41:23 server approx[28108]: Request: GET
/palemoon8/./amd64/palemoon_27.9.0%7erepack-1_amd64.deb
May 4 20:41:23 server approx[28108]: Host: server:
May 4 20:41:23 server approx[28108]: User-Agent: