0

Is there a way to prevent caching of your form? I've tried the autocomplete attribute on the form, and input elements. I've tried the meta head tags. Is there a way? Also, is it normal for forms to resubmit themselves after refreshing the page? Thanks!

KaveElite
  • 94
  • 8
  • You need to be more specific with your question and preferably show the code that you have tried – RJo Feb 10 '15 at 06:10
  • What he said. Otherwise this is a duplicate. http://stackoverflow.com/questions/9587201/how-to-prevent-browser-from-caching-form-fields – Mark Miller Feb 10 '15 at 06:11
  • How can I be more specific? I included all the methods I've used... `autocomplete="off"` and ``. – KaveElite Feb 10 '15 at 06:13
  • I've tried the answer to the "duplicate" post. I know how to utilize the search function too man. – KaveElite Feb 10 '15 at 06:14

1 Answers1

0

You could prevent forms from resubmit themselves after refreshing the page using the Post/Redirect/Get (PRG) Pattern. (http://en.wikipedia.org/wiki/Post/Redirect/Get).

Not sure what language you are using but you can refer to this post: How to prevent form resubmission when page is refreshed via PHP

Community
  • 1
  • 1
c f
  • 186
  • 2
  • 12