22

I would like to disable "Confirm Form Resubmission" popups on Google Chrome when I make a refresh. This (very) old discussion acknowledges the problem but doesn't provide a fix.

Is there someone out there with a better idea?

4
  • 5
    Download the Chrome source code and hack together your own version with all the features you do and don't want.
    – Moab
    Oct 1, 2011 at 0:26
  • Like JSZ said in the discussion thread that Justin linked to, it is up to the site to handle re-visits (such as searches), not the browser to (impossibly) guess what is or is not a valid/safe automated resubmit.
    – Synetech
    Jan 9, 2012 at 6:18
  • from RFC 2616: "This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested."
    – hakre
    Dec 25, 2014 at 19:00
  • 1
    @Moab Why so serious ? :p Mar 16, 2017 at 16:39

1 Answer 1

18
+25

Chrome introduced this "feature" in order to avoid users unintentionally duplicating POST actions on forms, such as buying the same article twice.

This apparently was fixed some time ago by using the -disable-prompt-on-repost parameter on the Chrome invocation, but this also was broken in later versions. (Edit: Reported as working again since 2020.).

In spite of numerous related Chrome bug reports, that stayed open for years (!), the bug is still there. Apparently, the Chrome module that does back/forward is written so badly that it is almost impossible to fix. And nobody dares rewrite it from scratch.

Therefore, if you cannot modify the page containing the POST operation, then you are out of luck and there is no solution.

If you can modify the page, then you have two solutions :

  1. Use GET instead of POST
  2. Use the Post/Redirect/Get method with the HTTP 303 response code

There is of course the solution of using another browser than Chrome (but that doesn't answer the question).

6
  • Thanks. Could you please link to some of these bug reports?
    – Randomblue
    Jan 3, 2012 at 20:34
  • 1
    Just use this google query that gives more than 8000 answers.
    – harrymc
    Jan 4, 2012 at 6:43
  • 2
    Technically, Chrome did not introduce this feature, it has been present in pretty much all web browsers for years (at least 15 or so).
    – Synetech
    Jan 9, 2012 at 6:18
  • Opera fortunately does not have this misfeature.
    – cweiske
    Dec 7, 2012 at 15:51
  • Just in case someone's looking for an answer: you've found it. This command line option works for me as of 2020.
    – EvgenKo423
    Feb 7, 2021 at 8:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.