我们在使用applicationCache的时候,需要在html文件上面加上manifest="app.manifest"
但是这会导致这个html文件本身被缓存起来,即使app.manifest的内容被更新了也没用,我在chrome://appcache-internals/
下面看了,首页文件还是旧的,即使把它加入到NETWORK中也没用。虽然自己在url上面加参数是可以,但用户不可能知道这件事情呢。
用localstorage进行缓存也不行,因为有另外一个bug https://segmentfault.com/q/1010000005017249
我看到一个方法,不知道好不好
http://dreclo.blog.163.com/blog/static/528789512014111675023409/