Re: Bug#30643: base: apt-get update problems with http-/ftp-caches (i.e. squid)
On Sat, Dec 12, 1998 at 01:56:15PM -0700, Jason Gunthorpe wrote:
> > apt-get gets the package-descriptions. the proxy learns them. but it
> > seems, that in the next runs of apt-get squid offers always the old
> > files.
> Squid does not support the HTTP cache-control headers so there is no way
> to inform it to reload the cache. The new aot sends the proper cache
hmm, as far as i can see (in the source), squid does look if a page is
reloaded by a client, looking at the "Pragma: no-cache" tag.
squid-2.1.RELEASE/src/client_side.c:
if (httpHeaderHas(req_hdr, HDR_PRAGMA)) {
String s = httpHeaderGetList(req_hdr, HDR_PRAGMA);
if (strListIsMember(&s, "no-cache", ',')) {
#if HTTP_VIOLATIONS
if (Config.onoff.reload_into_ims)
request->flags.nocache_hack = 1;
else if (refresh_nocache_hack)
request->flags.nocache_hack = 1;
else
#endif
request->flags.nocache = 1;
}
stringClean(&s);
}
in practise, the almost the first thing a newby has to learn is, not to
believe that the page she/he gets (via the proxy) is the newest o$ne -
and in doubt to press the reload button in order to force an update of
the cache.
``wget --cache=off ..'' uses this feature, too.
> > i'd like to use (squid-)proxied ftp, but apt's ftp does not handle it.
> > thus, i'm notable to use my nearest mirror :(
>
> Have you asked your nearest mirror to add http access?
i think that leads every user to solve her/his individual problem.
in my current situation, i use wget with export ftp_proxy=http://....
wget uses the squid proxy that receives
GET ftp://ftp.ftu-berlin.de:21/unix/linux/mirrors/debian/..... HTTP/1.0
User-Agent: Wget/1.5.3
Host: localhost:21
Accept: */*
Pragma: no-cache
and i install the received debain package manually with dpkg -i.
but i´d like to use apt-get instead..
cheers,
- thomas <thomas@x-berg.in-berlin.de>
Reply to: