title: HTML5 offline "Application Cache Error event: Manifest fetch failed (-1)"
body: <p>I'm trying to write an HTML5 offline application but can't seem to get Chrome to accept the cache manifest file.</p>
  
  <p>Chrome logs the following output to its console while loading the application:</p>
  
  <pre><code>Creating Application Cache with manifest http://localhost/cache.manifest
  Application Cache Checking event
  Application Cache Error event: Manifest fetch failed (-1) http://localhost/cache.manifest
  </code></pre>
  
  <p>However, if I remove all lines from the manifest file except for the first line (i.e. "CACHE MANIFEST") Chrome accepts the manifest:</p>
  
  <pre><code>Creating Application Cache with manifest http://localhost/cache.manifest
  Application Cache Checking event
  Application Cache Downloading event
  Application Cache Progress event (0 of 0)
  Application Cache Cached event
  </code></pre>
  
  <p>But, as soon as I add a new line to the manifest (even if that next line is empty) Chrome reverts to complaining that the fetch failed.</p>
  
  <p>All files are being served locally from a Windows 7 PC via Python using SimpleHTTPServer on port 80. I've updated the types_map in %PYTHON%/Lib/mimetypes.py with the following line:</p>
  
  <pre><code>    '.manifest': 'text/cache-manifest',
  </code></pre>
  
  <p>The manifest should contain the following:</p>
  
  <pre><code>CACHE MANIFEST 
  scripts/africa.js
  scripts/main.js
  scripts/offline.js
  scripts/libs/raphael-min.js
  favicon.ico
  apple-touch-icon.png
  </code></pre>