Application Cache Error event: Resource fetch failed (-1)

m90 picture m90 · Oct 18, 2012 · Viewed 7.2k times · Source

I am trying to store a mp4 video file (rather small ~ 2.5MB) in the local app cache.

Manifest looks like:

CACHE MANIFEST
viddy.mp4

Chrome (22.0.1229.94 m) will log the following in the console:

Creating Application Cache with manifest http://example.net/cache.manifest
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 1) http://example.net/viddy.mp4
Application Cache Error event: Resource fetch failed (-1) http://example.net/viddy.mp4

When I click the link right next to the Error it's opening the file quite fine.

My manifest is served with the correct MIME-type (I'm using the HTML5 Boilerplate .htaccess-file) and the video is served Content-Type:video/mp4

Is my file too big? I am perfectly able to cache a 1MB image this way, so I thought filesize should not be a problem? Safari on desktop and iPad does cache the video just fine.

Remark: I have seen this question but it does not cover my problem as the solution seemed to be something Python-related.

Answer

Crystal Miller picture Crystal Miller · Feb 26, 2014

Chrome does not allow data to be stored in Incognito Mode.