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/status below:

status · WebPlatform Docs

status Summary

Returns the current status of the application cache, as given by the constants defined below.

Property of apis/appcache/ApplicationCacheapis/appcache/ApplicationCache

Syntax

Note: This property is read-only.

var result = ApplicationCache.status;
Return Value

Returns an object of type unsigned shortunsigned short

UNCACHED (numeric value 0)
The current webpage doesn’t use an application cache at this time.
IDLE (numeric value 1)
The current webpage’s application cache is the newest available, it’s content is not being updated or marked as obsolete.
CHECKING (numeric value 2)
The current webpage’s application cache is checking for an update.
DOWNLOADING (numeric value 3)
An update for the cached resources was found and is now being downloaded.
UPDATEREADY (numeric value 4)
The updated ressources have been newly redownloaded.
OBSOLETE (numeric value 5)
The current webpage’s application cache is marked as obsolete.
Examples
var appCache = window.applicationCache;

switch (appCache.status) {
  case appCache.UNCACHED: 
    return 'UNCACHED';
    break;
  case appCache.IDLE: 
    return 'IDLE';
    break;
  case appCache.CHECKING: 
    return 'CHECKING';
    break;
  case appCache.DOWNLOADING: 
    return 'DOWNLOADING';
    break;
  case appCache.UPDATEREADY:  
    return 'UPDATEREADY';
    break;
  case appCache.OBSOLETE: 
    return 'OBSOLETE';
    break;
  default:
    return 'UKNOWN CACHE STATUS';
    break;
};
Related specifications
W3C ApplicationCache Specification
W3C Editor’s Draft
See also Related articles Off-line Storage 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