開啟應(yīng)用緩存
<html manifest="example.appcache">
...
</html>
創(chuàng)建example.appcache
CACHE MANIFEST
# 要緩存的文件
CACHE:
index.html
index.js
# 不被緩存的文件
NETWORK:
style.css
# 回跳的文件
FALLBACK:
fallback.html
<html manifest="example.appcache">
...
</html>
CACHE MANIFEST
# 要緩存的文件
CACHE:
index.html
index.js
# 不被緩存的文件
NETWORK:
style.css
# 回跳的文件
FALLBACK:
fallback.html