Use GET as a method for the form tag instead of POST.
Since POST is designed to βuploadβ data to the server, the browser will rightfully warn the user about the form being re-processed, but if you just GET the data, the browser assumes that the safe action is repeated.
EDIT : I am not reading the dialog correctly in the question. This is not about reselling, but about discarding form data ... Try using GET instead of POST anyway (if you are not already doing this), see if this has an effect.
EDIT2 : I would be surprised if there was any simple way to disable it using javascript (maybe the user could disconnect in the browser), as this is a reminder that you are about to reset the data. If the user wants to reload the page, the browser warns that the form will be discarded, but the user can dismiss it.
In any case, this should not be a problem. If for some reason you need to restart the application for actual production, try rewriting the program to work without rebooting (as this may lead to the browser reloading the code). For instance. if you want to reboot only to form reset, just add a reset button.
source share