How to prevent google chrome from caching my inputs, esp hidden ones when user click back? How to prevent google chrome from caching my inputs, esp hidden ones when user click back? google-chrome google-chrome

How to prevent google chrome from caching my inputs, esp hidden ones when user click back?


Moved here after reading @pruts comment ;)

my boss found the answer, it was a simple autocomplete="off" added to the input attributes, although vwd will flag it as an error :)


I guess you can reset the hidden fields as soon the page is loaded.

<script type="text/javascript">  $(function() {      $("input[type=hidden]").val("");  });</script>

This code is executed when you hit "back".