To display this webpage correctly, resubmit the data you entered earlier. By doing this, you will repeat any action this page previously performed

this issue related to history.back(), then later I replace with window.location.replace(document.referrer) in my local.
finalize in UAT environment, the issue still there.

also tried with history.go(-1) / window.location.href=”, but failed

now I will try this,

if (typeof window.history.replaceState === 'function') {
    window.history.replaceState(null, null, window.location.href);
}

I need other ways to counter this resubmission issue except from above.