„HTML5 provides an application caching mechanism that lets web-based applications run offline. Developers can use the Application Cache (AppCache) interface to specify resources that the browser should cache and make available to offline users.“ -MDN https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache
• FILES ALWAYS COME FROM THE APPLICATIONCACHE, EVEN IF YOU’RE ONLINE • THE APPLICATIONCACHE ONLY UPDATES IF THE CONTENT OF THE MANIFEST ITSELF HAS CHANGED • THE APPLICATIONCACHE IS AN ADDITIONAL CACHE, NOT AT ALTERNATIVE ONE • NEVER EVER EVER FAR-FUTURE CACHE THE MANIFEST • NON-CACHED RESOURCES WILL NOT LOAD ON A CACHED PAGE • WE DON’T KNOW HOW WE GOT TO THE FALLBACK PAGE • …
–Wikipedia https://en.wikipedia.org/wiki/Indexed_Database_API „The Indexed Database API, or IndexedDB (formerly WebSimpleDB), is a W3C recommended web browser standard interface for a transactional local database of JSON objects collections with indices.“
IndexedDB: Open/Create var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; var open = indexedDB.open("MyDatabase", 1); // Create the schema open.onupgradeneeded = function() { var db = open.result; var store = db.createObjectStore("FancyNamedStore", {keyPath: "id"}); var index = store.createIndex("NameIndex", ["name.last", "name.first"]); }; open.onsuccess = function() {}; open.onfailure = function() {};
„localForage is a JavaScript library that improves the offline experience of your web app by using an asynchronous data store with a simple, localStorage- like API. It allows developers to store many types of data instead of just strings.“ –https://localforage.github.io
„localForage includes a localStorage-backed fallback store for browsers with no IndexedDB or WebSQL support. Asynchronous storage is available in the current versions of all major browsers: Chrome, Firefox, IE, and Safari (including Safari Mobile).“ –https://localforage.github.io
— https://github.com/w3c/ServiceWorker „Service workers are a new browser feature that provide event-driven scripts that run independently of web pages. Unlike other workers, service workers can be shut down at the end of events, note the lack of retained references from documents, and they have access to domain-wide events such as network fetches.“
— https://github.com/w3c/ServiceWorker „Service workers also have scriptable caches. Along with the ability to respond to network requests from certain web pages via script, this provides a way for applications to “go offline”.“
–Ada Rose Edwards https://www.smashingmagazine.com/2016/09/the-building-blocks-of-progressive-web-apps/ „An ideal web app is a web page that has the best aspects of both the web and native apps. It should be fast and quick to interact with, fit the device’s viewport, remain usable offline and be able to have an icon on the home screen.“
–Slightly modified by me… „An ideal web page is a web page that has the best aspects of both the web and native apps. It should be fast and quick to interact with, fit the device’s viewport and remain usable offline and be able to have an icon on the home screen.“