Prevent Firefox reloading pages?
Posted: Thu Oct 26, 2006 4:59 am
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!
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!