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

Http Expire Header on Referer Check

From: Bjoern Hoehrmann <bjoern@hoehrmann.de>
Date: Mon, 2 Aug 1999 11:37:04 -0400 (EDT)
Message-ID: <004901bedcfb$94350fc0$c7e0a8c0@de>
To: <www-validator@w3.org>
Hi,

I suggest to set an expire header, if a referer check is requestet to avoid
the caching of this document.

Something like

use HTTP::Date;


# from the check script the line:
$parameters = $ENV{PATH_INFO} || $ENV{QUERY_STRING};

print "Content-type: text/html\n\n";

if ( $parameters =~ /^\/referer/ ) {
  print "Expires: ",time2str($time),"\n";
}

[....]

would be my solution.

Regards,
 Björn Höhrmann
Received on Monday, 2 August 1999 21:36:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:52 GMT