title: Reload the site when reached via browsers back button
body: <p>Problem: I have a site with dynamic content which needs to be reloaded every time the user sees it. This includes the use case when a user hits the back button on an another site and comes to the site needed to be reloaded. Most (all?) browsers don't refresh the site after this event.</p>
  
  <p>My solution (which isn't quite working):
  <a href="http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript">http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript</a></p>
  
  <pre><code>window.onbeforeunload = function () {
      // This function does nothing.  It won't spawn a confirmation dialog
      // But it will ensure that the page is not cached by the browser.
  }
  </code></pre>
  
  <p>But it still doesn't refresh the page.</p>
  
  <p>Any ideas what can affect/block the desired behavior? Respectively any other solution suggestions for this problem?</p>
  
  <p>edit:</p>
  
  <p>Set following:</p>
  
  <pre><code>Cache-Control   private, must-revalidate, max-age=0
  Expires Sat, 26 Jul 1997 05:00:00 GMT
  Pragma  no-cache
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>&lt;meta name="cache-control" content="no-cache" /&gt;
  &lt;meta name="expires" content="0" /&gt;
  &lt;meta name="pragma" content="no-cache" /&gt;
  </code></pre>
  
  <p>still no success.</p>