Hi all,
Using the latest release of Firefox, I've stumbled upon an annoying feature when testing the UI for my PHP application.
Starting from a page which displays a list of files with checkboxes, I select a few options, and click the 'delete' button. My app (MVC-based) deletes the selected files (passed via POST), and performs a meta-redirect back to the same page which displays the updated list of files, plus a 'success' message.
With other browsers, I can test my error handling routines by clicking the Back button and reposting the form - the still-selected checkboxes post the same form data, and I get an error that the selected files no longer exist. However, with Firefox, clicking the Back button seems to reload the page, so I get the updated form rather than the old cached copy. Now I have read that this is actually the correct behaviour and that other browsers have it wrong, but either way is it possible to replicate the more common behaviour in Firefox - perhaps with an HTML meta tag or something, or preferably by tweaking a hidden Firefox preference?
Thanks in advance!
Prevent Firefox reloading pages?
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
You may want to look at the cache-control options in the header() function.
-
mandar-seo
- Forum Newbie
- Posts: 6
- Joined: Mon Jun 19, 2006 11:59 pm
- Location: pune, india