Is AppCache = Application Cache = Web Storage's LocalStorage?

Clay Nichols picture Clay Nichols · Jun 11, 2012 · Viewed 7.9k times · Source

I'm getting a bit confused by the (varied) terminology for HTML5 offline storage.

I think that AppCache is another name for Web Storage and you specify what will be stored offline via the Cache Manifest. And there are two types: LocalStorage (persists beyond the current session) and session storage (which does not persist beyond the current session).

The above is what I'm reading from W3C and from wikipedia but Head First HTML5 Programming (Freeman & Robinson) describes LocalStorage in depth, then has Web Storage (with info on Cache Manifest) in the appendix ("things we aren't covering).

Am I understanding this correctly?

Answer

Marvin Emil Brach picture Marvin Emil Brach · Jul 31, 2012

WebStorage is the possibility in HTML5 to store data on client side (think of it like cookies, but with usually 5 MB available space). The're two ways to store that data (scope):

  1. Just for a session until the browser get closed (SessionStorage)
  2. For a longtime period even if the browser get closed and the host's shutdown

http://diveintohtml5.info/storage.html


AppCache is the HTML5-ability to store the whole web-app (pages, images, css, JavaScript) in the browser to make it available even if the client has no internet connection at all.

http://appcache.offline.technology/