W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Telling caches in the middle we want fresh copies of retrieved documents (Bug 4998)

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:11 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1ix-0005x5-3y@blinky.w3.org>
changeset:   201:dbd9c2226251
user:        ville
date:        Tue Sep 18 16:24:13 2007 +0000
files:       bin/checklink
description:
Telling caches in the middle we want fresh copies of retrieved documents (Bug 4998)


diff -r 808e3b27c42a -r dbd9c2226251 bin/checklink
--- a/bin/checklink	Tue Sep 18 07:18:46 2007 +0000
+++ b/bin/checklink	Tue Sep 18 16:24:13 2007 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2007 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.74 2007-09-18 07:18:46 ot Exp $
+# $Id: checklink,v 4.75 2007-09-18 16:24:13 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -204,7 +204,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2007 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.74 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.75 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1158,6 +1158,9 @@
 
   # Set referer
   $request->referer($referer) if (!$Opts{No_Referer} && $referer);
+
+  # Telling caches in the middle we want a fresh copy (Bug 4998)
+  $request->header(Cache_Control => "max-age=0");
 
   # Do the query
   my $response = $ua->request($request);
Received on Thursday, 5 August 2010 14:47:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC