Mike Burdick has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI script that creates a dynamic form. When the user fills in the required information it is then sent to the server for processing. Then a new page is returned to the user that is "updated". What I need to do is prevent the user from using his back button and obtaining the last cached page.
Here's the code I used:
print header(-type => 'text/html', -expires =>'-1d', -cookie => $Some_information, -Pragma => 'no-cache', -Cache_Control =>'no-store,no-cache,must-revalidate,post- +check=0,pre-check=0');
This works great in Firefox, but it DOESN'T work in IE or Opera. What's my problem? By the way, before testing, I deleted all of each browser's cache. If any of you could offer any help I sure would appreciate it.
Thanks in advance...Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Control of cache
by Aristotle (Chancellor) on Sep 17, 2004 at 07:04 UTC | |
|
Re: Control of cache
by samtregar (Abbot) on Sep 17, 2004 at 22:21 UTC | |
by Mike Burdick (Initiate) on Sep 18, 2004 at 00:23 UTC | |
|
Re: Control of cache
by chanio (Priest) on Sep 18, 2004 at 03:20 UTC |