title: Javascript caching on iPad HTML5 fullscreen web application
body: <p>I'm having an problem where the iPad insists on loading an old copy of a .js file, instead of the current one. Strangely enough, this only happens when the page is in fullscreen mode, not when it's being run from the page.</p>
  
  <ul>
  <li>I'm not using any kind of cache manifest;</li>
  <li>When I open the page on Safari, it behaves as dictated by the latest version of the .js;</li>
  <li>When I open the page through the icon, it behaves as dictated by the old .js;</li>
  <li>Killing the running application, deleting the icon and then creating it again doesn't solve the problem; it's still using the old .js, even while in full screen.</li>
  </ul>
  
  <p>Does anyone have an idea of what's going on?</p>
  
  <p>-- update --</p>
  
  <p>This seems to be an <a href="https://discussions.apple.com/thread/3385843?start=0&amp;tstart=0" rel="nofollow">iOS 5 bug</a>.</p>
  
  <p>-- Workaround (a.k.a. ugly hack) --</p>
  
  <p>Simply add some fake http params to the script tag, so that the cache thinks it's entirely another JS:</p>
  
  <pre><code>&lt;script src="js/pentaho-jqm-repository.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Becomes:</p>
  
  <pre><code>&lt;script src="js/pentaho-jqm-repository.js?fkn-ios-bug=1"&gt;&lt;/script&gt;
  </code></pre>