The Webpage is associated with an application cache whose group is marked as obsolete.
Property of apis/appcache/ApplicationCacheapis/appcache/ApplicationCache
Syntaxvar result = window.applicationCache.onobsolete;
window.applicationCache.onobsolete = value;
Return Value
Returns an object of type nullnull
ExamplesChecking 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.
AttributionsMicrosoft Developer Network: Article
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