0

I'm using the following meta tags, but doesn't solve my problem

  • Pragma -> no-cache
  • cache-control -> no-cache,no-store

what is the difference of using this in meta tags and in headers form .htaccess

Please Suggest!!

  • possible duplicate of [Make page to tell browser not to cache/preserve input values](http://stackoverflow.com/questions/2699284/make-page-to-tell-browser-not-to-cache-preserve-input-values) – Lix Oct 03 '13 at 07:26
  • also http://stackoverflow.com/questions/2630986/stop-browser-from-filling-textboxes-with-details and http://stackoverflow.com/questions/9587201/how-to-prevent-browser-from-caching-form-fields – Lix Oct 03 '13 at 07:27
  • Please try to search for an existing answer before creating a new post. More often than not you'll find that someone else has already faced the same problem - and has most likely already received an answer :) – Lix Oct 03 '13 at 07:28
  • @Lix - thanks for the quick reply and for you suggestion. Are there any tools to check if the form caching is off? – Ajay.Bommasani Oct 03 '13 at 07:34
  • You could just test this on a few browsers that are known to implement autocomplete. Chrome and FireFox both implement this feature. – Lix Oct 03 '13 at 07:36
  • [Here is some more official documentation on how to disable autocomplete in forms](https://developer.mozilla.org/en-US/docs/Mozilla/How_to_Turn_Off_Form_Autocompletion) – Lix Oct 03 '13 at 07:37
  • You may read for the concept of header http://stackoverflow.com/a/15050018/553964 – hmert Oct 03 '13 at 07:38
  • @lix - if i use autocomplete="off" for form caching, the what is the use of meta tags pragma and cache-control? – Ajay.Bommasani Oct 03 '13 at 07:40
  • That is for [caching of other HTTP resources](https://developer.mozilla.org/en/docs/HTTP_Caching_FAQ) – Lix Oct 03 '13 at 07:41

0 Answers0