manifest 总结

格式如下:

CACHE MANIFEST

# CACHE MANIFEST 必须写在第一行

# version2015-10-10 11:26:15

 

CACHE:

h5PluginDemo/css/animate.css

h5PluginDemo/css/common.css

h5PluginDemo/css/ui-font.css

h5PluginDemo/css/style.css

1.3.0/hSea.min.js

h5PluginDemo/images/loading01.gif

h5PluginDemo/configuration.js?v=1.3.0

globalConfig.js?v=1.3.0

1.3.0/plugins/layer/scripts/layerUtils_b8e7f0c8.js

1.3.0/plugins/nativeintf/scripts/external_98546bfb.js

h5PluginDemo/scripts/common/common.js

h5PluginDemo/scripts/calendar/demo.js

h5PluginDemo/views/calendar/demo.html?v=1.3.0

h5PluginDemo/images/loading.gif

 

NETWORK:

*

 

FALLBACK:

h5PluginDemo/index.html h5PluginDemo/error.html

 

manifest 文件更新之后,刷新页面会自动下载新的 manifest 指定的缓存资源,但是本次并不会使用新的资源,再次刷新会使用更新后的资源

 

学习地址:

http://blog.jamesdbloom.com/JavaScriptAndApplicationCache.html

https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache

https://html.spec.whatwg.org/multipage/browsers.html#offline

http://www.alloyteam.com/2013/12/web-cache-6-hybrid-app-tailored-cache/

http://www.cnblogs.com/dolphinX/p/3439970.html

http://cube.qq.com/?p=325


你可能感兴趣的:(manifest 总结)