Wouldn't it be great if we didn't face network problems like the one we faced in the previous chapter? Then, for simple applications that do not use a data connection or privileged Web APIs, we could simply use hosted variants for distribution of without going through the Firefox Marketplace. There's a solution for this problem called AppCache. Using AppCache, we can make our applications work offline. The full form of AppCache is Application Cache and with the help of this, after the first time the application is loaded, no internet connection is required for the working of the application.
Application Cache is a component of HTML5 and is really very easy to implement. Implementing AppCache is as simple as including a manifest.appcache
file in the root of your application. In the manifest file, you have to include the resources that you want the browser, or in our case the operating system, to cache. You can cache static resources, such as stylesheets...