I am developing a website that uses the html cache manifest (AppCache). I often see the following line in Chrome's console:
Application Cache Error event: Manifest fetch failed (6) https://192.168.0.102/static/index.appcache
Apparently the error code in parentheses is meant to be the HTTP status code, or
-1 if the browser is offline. But my server is not returning 6 as status code. So what does this code indicate?
Chrome's behavior regarding this error is very odd. If I force it to re-download the website by removing the appcache client-side (via
chrome://appcache-internals), this error often still occurs, but this time not preventing but interrupting an already running download; the second refresh then works fine.
The problem occurs regardless of whether there is a new version of the cache manifest or not, and this makes it hard to update Chrome's appcache. The problem does not occur in IE 11.
I'm using TLS with a self-signed certificate for this development stage. The HTTP response headers for the appcache manifest are
HTTP/1.1 200 OK
Cache-Control: no-cache, must-revalidate
Content-Type: text/cache-manifest; charset=utf-8
Last-Modified: Fri, 11 Apr 2014 07:49:30 GMT
Date: Fri, 11 Apr 2014 07:51:38 GMT