From 61c1d7d3658fdcd4b32f8b071cef7941120f8abc Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 16 Sep 2021 19:33:24 +0200 Subject: Add AllowRange option to disable HTTP Range usage apt makes heavy usage of HTTP1.1 features including Range and If-Range. Sadly it is not obvious if the involved server(s) (and proxies) actually support them all. The Acquire::http::AllowRange option defaults to true as before, but now a user can disable Range usage if it is known that the involved server is not dealing with such requests correctly. --- doc/examples/configure-index | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 4eca100f5..d519e010b 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -281,7 +281,8 @@ Acquire Timeout "30"; ConnectionAttemptDelayMsec "250"; Pipeline-Depth "5"; - AllowRedirect "true"; + AllowRanges ""; + AllowRedirect ""; // Cache Control. Note these do not work with Squid 2.0.2 No-Cache "false"; @@ -304,11 +305,11 @@ Acquire SslCert "/etc/apt/some.pem"; CaPath "/etc/ssl/certs"; Verify-Host "true"; - AllowRedirect "true"; + AllowRanges ""; + AllowRedirect ""; Timeout "30"; ConnectionAttemptDelayMsec "250"; - AllowRedirect "true"; // Cache Control. Note these do not work with Squid 2.0.2 No-Cache "false"; -- cgit v1.2.3-70-g09d2