Automatically resend POST request in browser when navigating using back button
browser, firefox
Solution
Sounds like the system you interact with doesn't follow the Post/Redirect/Get pattern.
- The client issues a `POST` request to the server,
- the server does something with the data and,
- redirects the client to a different URL
- which the client uses `GET` to fetch.
This way the client can reload the last URL or use the back-button and will not use `POST` again.
See Wikipedia for details.
Problem
When I click the back button of a browser, a message pops up asking if I want to re-send the request or Try Again. I am trying to find out how to avoid this message displaying when a user navigates back to any page using the browser back button. Basically, I want the browser not to ask for a confirmation before resending the request. Right now, when testing in Firefox, I get this: Document Expired This document is no longer available. The requested document is not available in Firefox's cache. As a security precaution, Firefox does not automatically re-request sensitive documents.Click Try Again to re-request the document from the website.