If you want to use this API, you must ensure that the server is configured with the corresponding mime type.
Take tomcat as an example. Open the Tomcat 6.0confweb.xml file and add the following content at the end of the file
manifest
text/cache- manifest
Particularly note that the value of extension is manifest, so the suffix of the future configuration cache file must be the same as it.
Using cache must be in the following format
...
< ;/html>
cache.mainfest is a file configured on the server side
The format is as follows
CACHE MANIFEST
index.html
time.js
time.css
#fallback is mainly used Replace the file when offline,
# /pay/ ofline.html All requests under pay will be forwarded to ofline.htm when offline
FALLBACK:
server-time.js fallback-server-time .js
NETWORK:
*
# version 9
where version is the version label. When the version changes, the client will automatically update the cache.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn