I have a django form that submits data to a database. When the form has been successfully filled out and the data submitted, the form redirects to another page. However, when the user hits the back button on the browser, the data comes back.
Is there a way to prevent the data from coming back?
Add this to your HTML and it will not cache:
If you want a Django specific answer. Try this though the result should be same: