title: Conditional refreshing page - how to set a referrer?
body: <p>I want to refresh my particular page, when referrer is blank. 
  To do this I used this script: </p>
  
  <pre><code> if (document.referrer === "" &amp;&amp; document.URL.match("mysite.com/page1/module1")){
       window.location.reload();
   }
  </code></pre>
  
  <p>Of course it refreshes endlessly - because after refreshing the site the referrer is blank too.</p>
  
  <p>How can make it to refresh only one time?</p>