[Gllug] Perl question, but it is a linux server!
Jason Clifford
jason at ukpost.com
Thu Mar 27 17:29:30 UTC 2003
On Thu, 27 Mar 2003, Adrian McMenamin wrote:
> I would like to put 'no cache' in the headers for a page generated by perl
> and I am not using the CGI module.
>
> Googling has produced lots of evil :-> python code, but none in lovely perl.
It's not actually a "No Cache" option you want for the headers but rather
an Expires one. See below for an example set of headers...
HTTP/1.1 200 OK
Date: Thu, 27 Mar 2003 17:27:02 GMT
Server: Crazy Perl Script that doesn't use CGI
Expires: Wed, 26 Mar 2003 17:27:03 GMT
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Simply print your headers like the above and then print a blank line prior
to outputting the content.
Jason Clifford
--
UKFSN.ORG Finance Free Software while you surf the 'net
http://www.ukfsn.org/ Get the T-Shirt Now
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list