Browser refresh behaviour

Marcus Downing picture Marcus Downing · Sep 9, 2008 · Viewed 25.6k times · Source

When a user hits Refresh on their browser, it reloads the page but keeps the contents of form fields. While I can see this being a useful default, it can be annoying on some dynamic pages, leading to a broken user experience.

Is there a way, in HTTP headers or equivalents, to change this behaviour?

Answer

Joseph Bui picture Joseph Bui · Sep 9, 2008
<input autocomplete="off">