title: Prevent jQuery Mobile from caching pages
body: <p>Consider a page1.php file with the following code:</p>
  
  <pre><code>&lt;?php
  session_start();
  if (isset($_SESSION['var'])) unset($_SESSION['var']);
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div data-role="page"&gt;
          &lt;div data-role="content"&gt;
              &lt;?php echo $_SESSION['var']; ?&gt;
              &lt;a href="page2.php"&gt;next page&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And a page2.php with the following code:</p>
  
  <pre><code>&lt;?php
  session_start();
  $_SESSION['var']++;
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div data-role="page"&gt;
          &lt;div data-role="content"&gt;
              &lt;?php echo $_SESSION['var']; ?&gt;
              &lt;a href="page1.php"&gt;previous page&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The result I'm trying to get is when you click the link to go to page2.php, and then refresh the page a few times while on page2.php, and then click the link to go to page1.php, and then click the link again to go to page2.php, the counter should go back to the beginning. So basically, going to page1.php resets the counter and going to page2.php increments it.</p>
  
  <p>However, what actually happens is I go to page2.php and refresh it a few times and the counter goes up like it should, then when I go back to page1.php and return to page2.php, the counter remains the same. But when I refresh the page now, it does go back to the beginning. So obviously the session variables are working and are being set and unset properly, but it seems like jQuery is caching the pages. Which doesn't really make sense either, because the data-dom-cache (<a href="http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html" rel="nofollow">http://jquerymobile.com/demos/1.2.0/docs/api/data-attributes.html</a>) attribute is set to false by default. Any ideas on how to fix this?</p>