# Detailed Explanation and Specifications of Manifest
HTML5 provides application caching capabilities, allowing the browser to save previously opened files for access without a network.
The advantages of using application caching include:
Application caching is primarily specified through the manifest attribute to designate cache files.
<html manifest="example.appcache">
...
</html>
The manifest file is saved with the MIME type text/cache-manifest
, and the beginning of the file must start with the two words CACHE MANIFEST
separated by a space.
Tag | Description |
---|---|
CACHE: | Specified cache files |
NETWORK: | Whitelist for cache files |
FALLBACK: | Error handling |
CACHE MANIFEST
# v1 2011-08-14
# This is another comment
index.html
cache.html
style.css
image1.png
# Use from network if available
NETWORK:
network.html
# Fallback content
FALLBACK:
/ fallback.html
text/cache-manifest
.CACHE MANIFEST
.