Search code examples
htmlcachinghtml5-appcachecache-manifest

Application Cache Error event: Manifest fetch failed (404)


I have a simple html website containing one css and js doc and some images. I need to make this work offline.I use html 5 offline cache for this purpose. On deploying and browsing i see that the website doesnt cache.Console shows an error : Application Cache Error event: Manifest fetch failed (404)

Following are the details : Directory structure : enter image description here

Manifest file :

enter image description here

Whats wrong?


Solution

  • The file name must be manifest.appcache ; it should not contain names of files other than images/javascript/css/html files. Any other types will result in error in fetching files. The rule applied to offline caching is ~ 'catch all or none'.