Jump to content

Firefox - Reloading The Page


ferrari

Recommended Posts

When reloading the page with Firefox, it does aim to "repeat the action" - which means send "the search", or "the order confirmation" one more time.

 

The question is, is this beneficial in contrast to having the cache emptied? In which forms may this be beneficial, if so?

 

Which approach may be beneficial for dynamic pages?

Link to comment
Share on other sites

If you're talking about people pressing "F5" after submitting a form, then you'll need to use a header () redirect after successfully saving the data.

 

For searches this isn't too much of a problem, but you can save the result and then use a search ID in the redirect. However, for other stuff like order confirmations, registration forms and the like, then you need to stop the refresh from re-submitting the form.

Quick example of how I'm doing it, in my scripts: http://pastebin.com/r0QpiRWX

 

PS: One part of your post didn't make a whole lot of sense, "having the cache emptied" how..? In any case, that's not going to stop the F5-resubmit problem.

Edited by Christian F.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.