summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2007-09-11 05:02:21 +0000
committerot <ot@localhost>2007-09-11 05:02:21 +0000
commit84a79d4de733737e11f890661add0503102c6217 (patch)
tree340f962a448f00975fc3840a2c1ee784c59f7202
parentf8f51757e8e38909496c9fb95225ebe38ae8bed8 (diff)
downloadmarkup-validator-84a79d4de733737e11f890661add0503102c6217.zip
markup-validator-84a79d4de733737e11f890661add0503102c6217.tar.gz
markup-validator-84a79d4de733737e11f890661add0503102c6217.tar.bz2
sending cache-control header in requests, telling in-the-middle
caches we want as fresh a version as possible: This fixes http://www.w3.org/Bugs/Public/show_bug.cgi?id=4998
-rwxr-xr-xhttpd/cgi-bin/check7
1 files changed, 5 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 0cad1ee..7113715 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.562 2007-09-07 07:32:54 ot Exp $
+# $Id: check,v 1.563 2007-09-11 05:02:21 ot Exp $
#
# Disable buffering on STDOUT!
@@ -186,7 +186,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.562 $;
+ $VERSION = q$Revision: 1.563 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -1274,6 +1274,9 @@ sub handle_uri {
return $File unless $ua->uri_ok($uri);
my $req = new HTTP::Request(GET => $uri);
+
+ # telling caches in the middle we want a fresh copy (Bug 4998)
+ $req->header(Cache_control=> "max-age=0");
# If we got a Authorization header, the client is back at it after being
# prompted for a password so we insert the header as is in the request.