title: Update the document.referrer via history.pushState()
body: <p>I'm using pushStates in my ajax-app to navigate from one "page" to another. Now, I'd like to see from what page I was coming from. But <code>document.referrer</code> always returns <code>""</code>. Or, when I open my app from another page (where it is linked), I got the URL from that other page.</p>
  
  <p>Shouldn't these lines...</p>
  
  <p><code>history.pushState({}, "Some title", "/some/valid/url/1");</code></p>
  
  <p><code>history.pushState({}, "Some title", "/some/valid/url/2");</code></p>
  
  <p>...produce a referrer like this:</p>
  
  <p><code>http://somedomain.com/some/valid/url/1</code></p>
  
  <p>?</p>
  
  <p>Or in other words: Is there any way to set the <code>document.referrer</code> accordingly, or at least reset it to <code>""</code>?</p>
  
  <p>Note: I'm looking for solutions without caching the previous URL in some variable. I need something that really changes the <code>document.referrer</code>, because I cannot change the scripts that rely on it.</p>