I have an edit-form page to edit my website posts.
It uses post method to the same page.
If the form is compiled correctly shows up a congrats message.
This is called the Post/Redirect/Get pattern. You do this by responding to a POST request with a 302/303 Redirect, which prevents that troublesome behavior on the client.
You can read more about this in the link I posted above.