Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 offline caching

I've read the following Mozilla Developer article that explains how to implement HTML 5 offline resource caching in web apps.

I've tried testing this locally: added the mime type to the list, created the manifest file, changed my doctype to the HTML 5 doctype, specified the manifest attribute and the correct path on the HTML element--but still I don't see the manifest file being consumed by Firefox at all. I've also checked the access logs on Apache and didn't see any requests for the manifest file being made.

Has anyone given it a jab and had any success? I just don't know how to further troubleshoot the issue and would welcome any suggestions.

like image 204
Filip Dupanović Avatar asked Jul 30 '09 14:07

Filip Dupanović


People also ask

What allows HTML5 application to work in an offline state?

Offline web applications are available through the new HTML Offline Web Application API, also known as HTML Application Cache. Beyond simply serving pages to the user when an Internet connection is unavailable, often an offline application requires storage of user's information.

What does offline caching mean?

Offline Caching is a feature that saves StickyFolios data to a mobile device and allows users to view their StickyFolio without being connected to the internet.

Is AppCache deprecated?

The Application Cache (AppCache) specification has been deprecated since December 2016 and in Chrome starting in version 79. In Chrome 70, AppCache was removed from insecure contexts.


2 Answers

I've compiled a few resources that may help you:

  • HTML 5 Offline Web Applications
  • W3C's Offline Web Applications
  • Kaizou's Offline Web Applications Blog post (very helpful)
like image 128
Kredns Avatar answered Oct 05 '22 20:10

Kredns


Yes I have a full working prototype. At the time the manifest system in firefox was flawed. You can implement the maninfest system in a dynamic way using applicationCache.add(), applicationCache.remove() etc...

The manifest then just needs to be a json file. You will still need to have the @manifest in the html tag.

like image 28
zardoz Avatar answered Oct 05 '22 22:10

zardoz