title: How to ignore files not required in offline mode for cache manifest
body: <p>I have an application that needs to work in offline mode. However, only part of the application needs to work in offline mode.</p>
  
  <p>I handle the inputs and actions from the user well - in that, I let the user know which actions are not available in offline mode.</p>
  
  <p>My problem is with the entries of the cache manifest</p>
  
  <p>Let us say my index.html file looks like this -</p>
  
  <pre><code>&lt;html manifest="/cache.manifest"&gt;
      &lt;body&gt;
          &lt;script src="FirstController.js"&gt;&lt;/script&gt;
          &lt;script src="SecondController.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now, I only want <code>FirstController.js</code> file because only the page that it deals with is required in offline mode. So I specify it in the cache manifest.</p>
  
  <p>This works. However, I noticed that the browser still tries to load the <code>SecondController.js</code> file.</p>
  
  <p>As a result, my application does not load in IE11. In Google Chrome, I have errors in the console. (this is in offline mode).</p>
  
  <p>How do I tell the browser to ignore <code>SecondController.js</code> if the application is offline?</p>