title: iPhone application cache and XMLHttpRequest
body: <p>I have a WebApp that I've been try to make work offline. The WebApp is too big, even minified, to simply use the application cache (things download but I eventually get a window.applicationCache error). I'm trying to use XMLHttpRequest to get the larger scripts and main html and keep them in localStorage and just keep a small loader script in the application cache. The problem I'm seeing is that the XMLHttpRequest returns a network error when the loader script is being served locally. When the the cache is downloading no error is returned and it works fine. When I turn off the application cache the loader works fine, but of course then I need the network to get the loader.</p>
  
  <p>I tried <code>setRequestHeader("Cache-Control", "no-cache")</code> but that didn't help.</p>
  
  <p>Anybody have a clue?</p>