Prevent Firefox reloading pages?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
georgeoc
Forum Contributor
Posts: 166
Joined: Wed Aug 09, 2006 4:21 pm
Location: London, UK

Prevent Firefox reloading pages?

Post 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!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

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

Post 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
Post Reply