[squid-users] caching apt package lists/Raspbian

Amos Jeffries squid3 at treenet.co.nz
Mon Aug 19 06:43:43 UTC 2019

On 19/08/19 2:06 am, TarotApprentice wrote:
> It turns out it still doesn't cache them the Packages.xz. From
> discussions over on the RaspberryPi forums it seems its hitting the
> following (this is just the Packages.xz) in order to match their
> main, contrib, non-free and rpi repos.
> $ apt-get --print-uris update

> I thought I would paste these into redbot. A bunch of them are
> returning HTTP 404 - Not found responses. That first one for example
> gives a 404 response. Would that be enough to force squid to have to
> download the ones it can find each and every time?

For those ones yes. As redbot says Squid is allowed to cache them, but
not to use the resulting HIT later. Unless something exceptional occurs
like not being able to contact the origin for an update.

> Any other suggestions on how to debug this?

You can try "debug_options 11,2 22,3 20,3" and see what is going on for
the ones that are not 404.


More information about the squid-users mailing list