Basic Example of HTML 5 cache

suggest change

Application 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents