What the Error Means
Chrome and other Chromium-based browsers show a page titled "Confirm Form Resubmission" with the code ERR_
The usual path to it: you submit a form, open another page, then press Back. Pressing Reload on a form's result page brings up a similar prompt before the browser sends the form again.
What a Visitor Can Try
- Do not resubmit an order or a payment: if the form sent money or created something, look for a confirmation message in your account before you submit again.
- Load the page fresh: click in the address bar and press Enter. That sends a normal request instead of repeating the form.
- Resubmit only harmless forms: for a search or a filter, reloading and confirming does no damage.
- Clear the site's cache and cookies: remove the stored data for that one site in the browser settings, then open it again.
- Try without extensions: a private window usually runs without extensions. If the error is gone there, an extension that changes requests or caching is involved.
When Developers See It
With the developer tools open and the option to disable the cache turned on, the browser does not reuse stored copies, so the prompt can appear more often while you test form pages. Close the developer tools or turn the option off before you treat it as a site problem.
The Fix for Site Owners: Redirect After POST
The lasting fix is the Post/Redirect/Get pattern. The script that handles the form does its work, then answers with a redirect instead of a page. The browser follows the redirect with a GET request, so the page the visitor ends up on has an ordinary address that can be reloaded, bookmarked, and reached with Back without any prompt.
Use status 303 See Other, which tells the browser to fetch the new address with GET. In PHP:
// after the order has been saved
header('Location: https://example.com/order/received', true, 303);
exit;Show validation errors on the redirected page too, kept in the session. For what 303 and the other redirect codes mean, see HTTP status codes explained.
Check the Response with curl
Send a test POST and print the status code and the redirect target. The -d option makes curl send a POST:
curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' \
-d 'name=test' https://example.com/contactA result such as 303 https://example.com/contact/thanks is what you want. A 200 means the handler still returns the page directly, and Back or Reload will lead to the prompt. The request is real, so use a test form or a staging copy of the site.
Cache-Control Headers
Response headers decide whether the browser may keep a page. Look at what a page sends:
curl -sI https://example.com/account | grep -i -E 'cache-control|expires|pragma'no-store: the browser keeps nothing. Right for pages with private data, but a POST result marked this way cannot be shown again from a stored copy, so going Back to it is likely to bring up the prompt.no-cache: the browser may store the page but checks with the server before reusing it.private: only the visitor's browser may store it, not shared caches.
Set the header in the application, or add it to the existing Nginx location block that serves the page:
add_header Cache-Control "no-cache" always;Nginx inherits add_ lines from the server block only when the location has none of its own, so a location with this line no longer sends the server block's headers: repeat any security headers you need there. The files are listed in Nginx config file location. Test with sudo nginx -t, then reload as shown in how to restart Nginx.
Confirm the Fix
- Submit the form in a normal browser window.
- Check that the address bar now shows the address the redirect pointed to.
- Open another page, then press Back. The result page should load without the prompt.
- Press Reload on the result page; it should reload without asking to resubmit.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations