Basic Example of HTML 5 cache
suggest changeApplication cache (manifest / .appcache) is obsolete and has been removed from current browsers. The example is kept only to document how it worked.
This is our index.html file:
<!DOCTYPE html>
<html manifest="index.appcache">
<body>
<p>Content</p>
</body>
</html>
Then create index.appcache with the following:
CACHE MANIFEST
index.html
List the files you want cached, load index.html, then switch to offline mode and reload the tab.
Note: The two files must be in the same folder in this example. The manifest attribute itself is obsolete.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents