chromium/third_party/blink/web_tests/http/tests/history/replacestate-post-to-get-2.html

<html>
<head>
<script src="/resources/prevent-bfcache.js"></script>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

async function test() {
    await preventBFCache();
    if (sessionStorage["form"] != 1) {
        sessionStorage["form"] = 1;
        var form = document.getElementById("testForm");
        setTimeout(function() { form.submit(); }, 0);
    } else {
        sessionStorage.removeItem("form");
        history.go(1);
    }
}
</script>
</head>
<body onpageshow="test()">
<form id="testForm" action="resources/replacestate-forward-back.php" method="POST">
</form>
</body>
</html>