A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/appcache/ApplicationCache/onobsolete below:

onobsolete · WebPlatform Docs

onobsolete Summary

The Webpage is associated with an application cache whose group is marked as obsolete.

Property of apis/appcache/ApplicationCacheapis/appcache/ApplicationCache

Syntax
var result = window.applicationCache.onobsolete;
window.applicationCache.onobsolete = value;
Return Value

Returns an object of type nullnull

Examples

Checking fo the obsolete status


window.applicationCache.update();



if (window.applicationCache.status === window.applicationCache.OBSOLETE) {
   console.log('The cache manifest is gone!');
}

Listening for obsolete events

window.applicationCache.addEventListener('obsolete',function () {
   console.log('The cache manifest is gone!');
}, false);
Notes

If the manifest file can’t be found, the cache is considered to be deleted. If there is more than one event, the obsolete event will be the last one in the sequence. Alternatively, you could use an anonymous delegate function such as

object.onobsolete = function (e) { … }

where e is the cached event.

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4