21

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?

  • 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 '11 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 '12 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 '14 at 19:00
  • @Moab Why so serious ? :p – delphirules Mar 16 '17 at 16:39
16
+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.

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).

| improve this answer | |
  • Thanks. Could you please link to some of these bug reports? – Randomblue Jan 3 '12 at 20:34
  • 1
    Just use this google query that gives more than 8000 answers. – harrymc Jan 4 '12 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 '12 at 6:18
  • Opera fortunately does not have this misfeature. – cweiske Dec 7 '12 at 15:51

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