summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:05:37 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:05:37 +0000
commitbcbe61aef90265d71d4a1e30ec56d17f7d45e8c4 (patch)
treee6fbe39f88b387bce3de52412e07026bade88cf4 /methods
parent5e3c3a3c9c0a942594d467c919db3cd773af1248 (diff)
* Change default for Acquire::http::max-age to 0 to pre...
Author: mdz Date: 2004-02-27 00:52:41 GMT * Change default for Acquire::http::max-age to 0 to prevent index files being out of sync with each other (important with Release.gpg)
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc
index a5af28917..365d172db 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.57 2004/01/07 20:39:38 mdz Exp $
+// $Id: http.cc,v 1.58 2004/02/27 00:52:41 mdz Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -637,7 +637,7 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
{
if (Itm->IndexFile == true)
sprintf(Buf+strlen(Buf),"Cache-Control: max-age=%u\r\n",
- _config->FindI("Acquire::http::Max-Age",60*60*24));
+ _config->FindI("Acquire::http::Max-Age",0));
else
{
if (_config->FindB("Acquire::http::No-Store",false) == true)