Re: apt experimental breaks w/ webcaching (was Re: apt 0.6 in experimental)
On Thu, Jan 01, 2004 at 07:34:26PM -0500, Anthony DeRobertis wrote:
> Squid is certainly within its rights to not fetch a new version of
> Packages.gz and Sources.gz while fetching the new Release file, and it
> seems it happens. Especially with the amount of transparent proxying
> that exists in the wild, this could be a problem...
A possible solution could be for apt to look at the Last-Modified
timestamp reported by the HTTP server for the Release file, and issue
the HTTP requests for Packages.gz and Sources.gz with Cache-Control:
max-age=x, where x is the current time minus Last-Modified.
There's already an Acquire::http::Max-Age option, so it should be a
matter of using a different default value for that for Packages.gz and
Sources.gz. If it still goes wrong, you can set Acquire::http::No-Cache
to "true".
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: