title: history.pushstate and HTTP POST form repost
body: <p>I am currently facing a little problem with HTTP post forms and history pushstate.</p>
  
  <p>When my user submits a POST form in <code>example.com/page-1</code> and then clicks on a link within this page, they are redirected to <code>example.com/page-2</code> with a history.pushstate. The JS script just changes the current url, pushes the old to the history, and then displays the new content. This works perfectly fine for me.</p>
  
  <p>The problem: Once the user is on <code>example.com/page-2</code> and <em>manually refreshes the page</em> (ctrl+r or refresh button), Chromes prompts the user to submit the form again; but the form was actually in <code>example.com/page-1</code> and there is no reason to asked it again in this "new" page.</p>
  
  <p>Is there a way to clear all the previously-submitted data in javascript on the popstate change to prevent repost prompt from the browser? Or am I missing something with my history states? Or is it something currently not implemented by the browser well yet?</p>
  
  <p>I only tested it with chrome since I don't implement pushstate with other browsers.</p>