On Thu, May 25, 2000 at 05:51:09PM +1000, Matthew Dalton wrote:
> I have two questions (below)...
> > #!/usr/bin/perl
> > use CGI qw/:standard/;
I don't think you need the qw/:standard/ if you're using the
object oriented style, ie $q->header, etc.
> I've been playing around with perl/cgi a little on my mini network at
> home. I have a cgi form that remembers the state that it is in. I want
> it to reload automatically when it is accessed, not just fetched from
> the browser's cache, so that it can reflect the state properly.
>
> How do I tell the browser/proxy that I don't want this page cached?
Heres some perl code.
print $q->header(-type=>'text/html',
-expires=>'+30s',
-pragma=>'no-cache',
-cache-control=>'no-cache');
gives the output
Expires: Thu, 25 May 2000 08:51:22 GMT
Date: Thu, 25 May 2000 08:50:52 GMT
0: no-cache
Pragma: no-cache
Content-Type: text/html
--
chesty
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text