摘要: 离线应用的文件列表需要设置正确的mime类型才可以, 否则浏览器无法缓存文件。具体配置如下:在 tomcat根目录 -> conf ->web.xml 中的<web-app>内添加<mime-mapping> <extension>manifest</extension> <mime-type>text/cache-manifest</mime-type></mime-mapping>即可。注意manifest文件后缀需要与<extension>中的内容相同,上面配置为manifest, 阅读全文
posted @ 2012-02-21 18:13 html5 阅读(1828) 评论(2) 推荐(0)