When we in the use of offline cache, sometimes may be updated resources, such as js, CSS or image update. But there is no update before the user has the cache in the old version of the resources, when the visit he used was the old version of the resource, how to let users to timely update the cache resources?

update cache resources basically has two kinds of methods, by modifying the configuration files of version number or call js complete update
js update method
code is as follows:


the if (window. The applicationCache. Status==window. The applicationCache. UPDATEREADY) {
window. The applicationCache. The update (); }

modify file to update the manifest file# 0 - #


This concludes the body part