After submitting a form with post method f5 will resubmit that.
What’s the best to avoid this without redirecting a page. Idon’t like to disturb the user like this. Stackoverflow are immune to f5 but i don’t see any redirection after asking a question.
After submitting a form with post method f5 will resubmit that. What’s the best
Share
StackOverflow is pretty AJAX-heavy, which is why you’re seeing the behavior you see.
If you don’t want to get all AJAXy, you want redirects. Redirects of this sort should be transparent to the user:
Now, if your validation fails, you probably reload the form with some error messages, and hammering F5 will re-POST the data. But if the operation is successful, the user will be redirected to your success page, and they can hammer f5 all day without rePOSTing data, and potentially creating duplicate actions.