Window.applicationcache object of HTML5

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.