Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: How can i do a expires to my page

by Chady (Priest)
on Jun 06, 2001 at 09:30 UTC ( #86128=note: print w/ replies, xml ) Need Help??

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

if you're using expires, then you're doing the right thing... but if the page still shows up when you click back, this is the fault of your ISP probably having a cache that doesn't respect HTML headers..

and what's with the refresh?? of course you'll see the page when you refresh it.. or do you want everyone to view it only once in their lifetime??

Maybe the problem is with your code, that's how it should be:

print $query->header(-type=>'text/html', -expires=>'-1d');

Update: Re-read it, the expires is in the header not in the starthtml

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady |

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86128]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-08-28 10:50 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (392 votes). Check out past polls.