What is an APPCACHE file?
Applications that can open APPCACHE files include web browsers such as Google Chrome, Safari, and Firefox.
APPCACHE File Format - More Information
APPCACHE files are simple text files, providing offline access to web pages for running without an internet connection. The presence of APPCACHE designates a page as available offline.
How to Reference an APPCACHE file?
In your HTML page, an APPCACHE file is referenced as follow.
<html manifest="example.appcache"> ... </html>
Structure of an APPCACHE Manifest file
A simple APPCACHE manifest file looks as follow.
CACHE MANIFEST index.html stylesheet.css images/logo.png scripts/main.js http://cdn.example.com/scripts/main.js
This is a simplest example and there can be more complex structures present as well.
Advantages of APPCACHE Manifest
The use of cache interface gives web applications the following advantages.
- Offline Browsing - The cache interface gives the end users to browse your full site when they’re Offline
- Speed - cache enables high speed access to offline content directly from disc
- Accessibility all the time - In case your site goes down, users will still have access to the web contents and will be able to get the offline experience