When the form is posted(ajax), I am navigating to other page and while pressing the back button, the form is again posted.
Is there any way to stop ajax post while clicking on back button in browser ?
I have used the below code to stop previous request, but after this back and forward button are disabled in the browser.
window.onpopstate = function (e) {}; history.pushState({}, '');
NOTE: I am getting this issue only in chrome
and safari
.