]> git.saurik.com Git - apt.git/commitdiff
* Change default for Acquire::http::max-age to 0 to pre...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:05:37 +0000 (17:05 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:05:37 +0000 (17:05 +0000)
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)

debian/changelog
methods/http.cc

index feee3c42e64836a76189d421ed81de825f1dc3c6..1a3144863b48412129c2aa26972cf0801330dee5 100644 (file)
@@ -5,8 +5,8 @@ apt (0.5.23) unstable; urgency=low
     symlinks are created correctly (thanks to Adam Heath)
   * Updated Simplified Chinese translation of message catalog from Tchaikov
     <chaisave@263.net> (Closes: #234186)
-  * Set Cache-Control: max-age=0 for index files to prevent them being out
-    of sync with each other (important with Release.gpg)
+  * Change default for Acquire::http::max-age to 0 to prevent index files
+    being out of sync with each other (important with Release.gpg)
   * Add an assert() to make sure that we don't overflow a fixed-size
     buffer in the very unlikely event that someone adds 10 packaging
     systems to apt (Closes: #233678)
index a5af2891763d6181fe10ce90bafe73d2a78c44ac..365d172db9163486a678baf761247c59c8c4af12 100644 (file)
@@ -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)