[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#573276: Acquire::http::No-Cache for only index files



Package: apt
Version: 0.7.25.3
Severity: wishlist
File: /usr/share/man/man5/apt.conf.5.gz

The man page says

           Three settings are provided for cache control with HTTP/1.1 compliant proxy
           caches.  No-Cache tells the proxy to not use its cached response under any
           circumstances, Max-Age is sent only for index files and tells the cache to refresh
           its object if it is older than the given number of seconds. Debian updates its
           index files daily so the default is 1 day.  No-Store specifies that the cache
           should never store this request, it is only set for archive files. This may be
           useful to prevent polluting a proxy cache with very large .deb files. Note: Squid
           2.0.2 does not support any of these options.

So apparently these three are
Acquire::http::No-Cache
Acquire::http::Max-Age and
Acquire::http::No-Store .

Well, I know
Acquire::http::No-Cache
works, see bug 564829.

However Acquire::http::Max-Age doesn't seem to have any effect when
apt-get update run is viewed with tcpflow.

apt-config dump shows
APT::Acquire::Max-Default-Age "";
APT::Acquire::Max-Default-Age::Debian-Security "7";
but these apparently are unrelated undocumented items.

Anyway, what I want, for bug 564829, is a way to say
Acquire::http::No-Cache true for non-debs, and false for debs.

I could try
Acquire::http::Max-Age 3600 if it worked.



Reply to: