Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How can i do a expires to my page

by tachyon (Chancellor)
on Jun 06, 2001 at 16:03 UTC ( #86175=note: print w/replies, xml ) Need Help??


in reply to How can i do a expires to my page

Unfortunately not all browsers respect the expires directive, you might try the following to add the no cache pragma to the headers when you output the page you want to expire:

tachyon

# if using CGI.pm to generate output try: print $query->header( -type => 'text/html', -expires => '-1d', -Pragma => 'no-cache', -Cache-control => 'no-cache'); # if directly outputing try: print <<END_OF_HEADER; Status: 200 OK Expires: now Pragma: no-cache Cache-control: no-cache Content-type: text/html END_OF_HEADER

This should generate a page expired message when you try to go back. </code>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86175]
help
Chatterbox?
[stevieb]: talexb I'm after by a few years, but we can still be friends because you live in my hometown ;)
[LanX]: White House
[LanX]: next inauguration ?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-08-18 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (303 votes). Check out past polls.

    Notices?