To display this page, Firefox must send information that will repeat any actions (such as searching or confirming an order) that have been completed previously.

Hey, I get this confirmation from firefox.

To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. 

Does anyone know what this confirmation is for?

And how to get rid of this?

+4
source share
8 answers

This happens when you refresh a page that results from a POST request (as opposed to a GET request).

To avoid this, you can use the POST / redirect / GET pattern .

+5
source

I had this problem on a website that I made. I finished the whole backend job and then used this code:

 header("Location: webpage.php", true, 303); 

This clears any mail data and redirects the page so that the reload no longer triggers this message.

+2
source

Try changing the type of request from POST to GET.

If it is not possible to change the type of request, try reloading the page using:

 window.location=window.location; 

Instead

 window.location.reload(); 

As suggested in response to the question preventing firefox rebooting

Worked very well in Firefox, Chrome ..

+2
source

This happens when you refresh the page that some POST data was sent to (for example, when you filled out the form). This question asks you if you want to resend this data, so if you did a search, the search request will be sent to the server again. This is dangerous when you fill out the form in which you order something, so updating the page and resending the data will make a new order on this site.

+1
source

It looks like the page request was from POST .

You must use the Post / Redirect / Get pattern.

0
source

Changed the type of method request from POST to GET in my search form and got rid of the confirmation window.

0
source

replace the existing code "top.location.reload ()" with the code "top.location.href = top.location.href" https://support.mozilla.org/en-US/questions/695164

0
source

The way Firefox warns; saying you re-submit the form with the post method.

below the workaround worked for me.

 <form id="yourDummyform" method="post" action="yourPostActionURL?var1=val1&var2=val2"> <!--or some hidden variables here --> </form> 

Success of ajax call or some do event

 $("#yourDummyform").submit(); 
0
source

Source: https://habr.com/ru/post/1403448/


All Articles