Page 1 of 1

Prevent Firefox reloading pages?

Posted: Thu Oct 26, 2006 4:59 am
by georgeoc
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!

Posted: Thu Oct 26, 2006 12:06 pm
by RobertGonzalez
You may want to look at the cache-control options in the header() function.

Posted: Fri Oct 27, 2006 6:41 am
by mandar-seo
Yes, Firefox has many hidden goodies. It is upto you how much you want to explore. With upcoming versions of it, it is becoming more user friendly and sophisticated.

With regards,
Mandar Thosar