Http Expire Header on Referer Check

From: Bjoern Hoehrmann (bjoern@hoehrmann.de)
Date: Mon, Aug 02 1999


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

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