Do you know where your variables are? | |
PerlMonks |
Expiring CGI pagesby legLess (Hermit) |
on Mar 07, 2002 at 17:24 UTC ( [id://150060]=perlquestion: print w/replies, xml ) | Need Help?? |
legLess has asked for the wisdom of the Perl Monks concerning the following question:
Monks ~ Ok, I thought this would be simple, but apparently not. I want to expire pages that my CGI sends to the browser. This is my current code: And when called from the shell it prints, as expected: But when I run the program in a browser, it doesn't at all do what I expect. Now, maybe that's the problem: what I want is for the page to expire and, instead of showing a cached version when the user hits "Back" or "Forward," actually call and run the program again. What the browser (multiple browsers on multiple platforms) does is politely scroll back and forth through its history. I've tried setting "-expires" to "-1d", and leaving it out entirely, with the same (zero) effect. There are other ways I can solve this problem, but cache-control seems one of the better ones. Any advice from the Monks on how to get this working? Thanks! -- man with no legs, inc.
Back to
Seekers of Perl Wisdom
|
|