Disable "Confirm Form Resubmission" prompt on Google Chrome

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?


Solution 1:

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