s

Confirm Form Resubmission ASP .NET 6 edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 30 January 2024 | 66

Confirm Form Resubmission

This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.

Press the reload button to resubmit the data needed to load the page.

ERR_CACHE_MISS

Solution

This is the the simplest way to resolve this issue. Use this javascript code inside the reloaded page's HTML.

    <script>
        if (window.history.replaceState) {
            window.history.replaceState(null, null, window.location.href);
        }
    </script>