Do not know the offline caching technology can refer to the previous article: HTML5 's AppCache Syntax Understanding/HTML5 application Cache/manifest cache file official usage translation
Reference articles
Window.applicationcache API Official
Usage:
Window.applicationCache.addEventListener (' Updateready ', onupdateready); if (Window.applicationCache.status = = = Window.applicationCache.UPDATEREADY) { Window.applicationCache.swapCache ();
Window.location.reload ();}
How to cancel the manifest cache:
Modify the server manifest file name, for example: Formerly known as Manifest.appcache Change to Obsolete.appcache
You can also refer to this article:
Html5api___manifest
Here's what window.applicationcache.
Window.applicationcacheapplicationcache {onobsolete:NULL, oncached:NULL, Onupdateready:NULL, OnProgress:NULL, ondownloading:NULL...}
Oncached:null
Onchecking:null
Ondownloading:null
Onerror:null
Onnoupdate:null
Onobsolete:null
Onprogress:null
Onupdateready:null
Status:1
__PROTO__: Applicationcache
Checking:2
Downloading:3
Idle:1
Obsolete:5
uncached:0
Updateready:4
AbortfunctionAbort () {[native code]}
ConstructorfunctionApplicationcache () {[native code]}
SwapCache:functionSwapCache () {[native code]}
UpdatefunctionUpdate () {[native code]}
__PROTO__: Eventtarget
Window.applicationcache object of HTML5