Can Send This Data Again

Tabular array Of Contents

  • Why Does It Happen
  • How To Ready It
    • Solution #1 (Super User Theories)
    • Solution #two (Google Forum Fix)
    • Solution #3 (Don't Use The Back Button)
    • Solution #4 (Update Google Chrome)
  • How To Prevent POST On Reloading A Form
    • Related Posts:

If you're getting the "ostend grade resubmission" dialog popup, information technology typically occurs on Chrome on refresh or later pressing a back button.

Though information technology's been seen on other browsers like Firefox:

confirm form resubmission on firefox

It will also sometimes provide the fault lawmaking "ERR_CACHE_MISS". It's not and so much an error, however, more than of a 'feature', according to Super User posters who have investigated the consequence.

Any the case, many cyberspace users are trying to figure out how to turn it off. Outset, permit's take a look at why it happens.

Why Does Information technology Happen

According to a Super User poster, Chrome introduced this "feature" to foreclose browsers from accidentally duplicating Mail deportment on forms.

For instance, buying the same item twice. If y'all refresh a page after buying something, your credit card could be charged twice if you lot weren't asked to "confirm course resubmission".

Getting more technical, the user says that in that location was a fix on earlier Chrome invocations that leveraged the -disable-prompt-on-repost parameter, merely this too was broken in later versions.

Further, despite many Chrome user complaints and bug reports this issue has remained persistent.

Complicating it, this Super User poster says, is that the Chrome module that does back/forwards is congenital so poorly that it is virtually impossible to set.

And no Google developer is brave enough to rewrite it from scratch.

How To Fix Information technology

Solution #1 (Super User Theories)

The Super User says that if you tin't actually modify the page containing the POST performance, then at that place really isn't any solution.

On the other mitt, he says, if you can modify the page there are two potential solutions:

  1. Employ Get instead of Mail
  2. Utilise the Post/Redirect/Go method with the HTTP 303 response lawmaking

If yous're just a regular browser, that's manifestly not much assist. Allow'south move on to the next gear up.

Solution #2 (Google Forum Gear up)

One Chrome user over in the Google Product Forum user said this 'feature' has adult into real annoyance.

He's encountering the message on a regular basis and would similar to disable this function. Information technology requires him to reload a web-page whenever he navigated back to a dynamically created page.

He criticized it equally extremely irritating due to the fact all sorts of pages will trigger the message.

A user posted the following gear up. Employ it at your ain discretion:

  1. Correct-click on your Chrome shortcut icon and select Properties
  2. In the target field, add together in: "-disable-prompt-on-repost" (no quotes after chrome.exe)

He provided an example- his target field looked like:

C:\Users\John\AppData\Local\Google\Chrome\Application\chrome.exe -disable-prompt-on-repost

Close down and re-open Chrome using the shortcut and run into if you lot encounter the problem once more.

Solution #3 (Don't Utilise The Back Button)

Another workaround comes from a Chrome user who explained that this isn't a bug but occurs because Chrome does not cache POST.

The workaround, in order to "disable" information technology, Chrome browsers should stop using the dorsum button afterward you accept submitted a class.

Solution #4 (Update Google Chrome)

A Google Production Forum user writes that many of these ostend form resubmission problems have been cleared out with Google Chrome updates- so it'southward a expert idea to bank check your current version and update if possible:

While information technology seems many of the original complaints most this resubmission upshot are quite old, bug reports continue popping up.

This clearly isn't a conventional mistake, it would seem- more of a feature to forestall users from re-submitting forms that could lead to unintentional credit card charges!

How To Foreclose POST On Reloading A Form

For a more technical explanation, the Dave Hollingworth YouTuber provides a lecture on the subject.

He says if you're looking to forestall POST on reload, if you press the reload button after a course has been submitted you could see a bulletin alarm you that the internet browser must resend data to be able to show the webpage again.

This error message is displayed for internet pages which are loaded considering of forms submitted using Mail service.

It is presented to notify the user that if the webpage is reloaded, the form data will be submitted once once again, which may replicate any action that was taken.

For example like charging a credit bill of fare, placing an social club from an e-commerce site, sending a verification, etc.

The thrust of the problem is that the cyberspace browser fills out the form, clicks Submit, which in turn sends the form data using POST.

The scripts on the server take the action and, in the aforementioned script, transmits a verification page dorsum to the internet browser.

Then when the user refreshes the page, they are refreshing this script, the alert is shown, the form information is reposted and also the script carries out once more.

Any activity that was taken will occur again.

The YouTuber walks yous through an example- a uncomplicated class with a accuse carte du jour number that is submitting its data to this script and in this script, the hypothetical buyer is doing something which must only occur one time.

Once the charge has been made, and if the user then presses refresh, they'll get the message that POST data is going to exist resent.

The problem occurs when many calculator users who aren't very tech savvy volition merely press re-transport which could cease upward charging the credit bill of fare over and over once again.

To set this, the YouTuber explains that you need to employ a POST redirect get pattern following running the POST data- scout the video for the full tech tutorial!

hartwickscivers1954.blogspot.com

Source: https://errorcodespro.com/confirm-form-resubmission/

Belum ada Komentar untuk "Can Send This Data Again"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel