title: IE 7 & 8 javascript file undesirably caching with require.js
body: <p>I have a page javascript page.js being loaded with require.js.  The call to the page.js is placed on the bottom of the page after the calls to require.js and is as follows:</p>
  
  <pre><code>&lt;script&gt;
      require(["page"]);
  &lt;/script&gt;
  </code></pre>
  
  <p>Functions inside the page.js simply do not execute each time the page is accessed.</p>
  
  <p>To be clear, an alert('hello'); in the middle of page.js will be alerted most but not all of the times.  I'm pretty sure this is not an existing IE issue, and that a simple alert will always execute provided there are no other JS errors.</p>
  
  <p>95% of the time the page and it's corresponding functions execute, about 5% of the time the IE browsers are not reexecuting the contents of the page.js.</p>
  
  <p>I don't think this is an inherent IE issue, but rather require.js is stumbling over related aggressive caching issues found in IE.</p>
  
  <p>Edits:
  Just to clarify, the page.js file is visible in the f12 dom load when the error occurs.  The page is properly cached.  The issue is that the cached code file is not re run!</p>
  
  <p>For instance the alert in this file is not executed!</p>
  
  <p>I'm not sure about the internals of require.js but I suppose they do xhr for the resources and eval it.  It seems the xhr completes and loads into the dom, but the eval isn't working correctly.  (This is of course speculation, as I don't know enough require.js internals).</p>