Application caches store resources for offline use. Each application cache has a unique client ID for use with nsICacheService::openSession() to access the cache's entries. Each entry in the application cache can be marked with a set of types, as discussed in the WHAT-WG offline applications specification. All application caches with the same group ID belong to a cache group. Each group has one "active" cache that will service future loads. Inactive caches will be removed from the cache when they are no longer referenced.
[scriptable, uuid(663e2e2e-04a0-47b6-87b3-a122be46cb53)]
Constants
Entries in an application cache can be marked as one or more of the following types.
Attributes
The client ID for this application cache. Clients can open a session with nsICacheService::createSession() using this client ID and a storage policy of STORE_OFFLINE to access this cache.
The group ID for this cache group. This is the URI of the manifest file.
Methods
Makes this cache the active application cache for this group. Future loads associated with this group will come from this cache. Other caches from this cache group will be deactivated.
Add a set of namespace entries to the application cache.
@param namespaces
An nsIArray of nsIApplicationCacheNamespace entries.
Discard this application cache. Removes all cached resources for this cache. If this is the active application cache for the group, the group will be removed.
Returns any entries in the application cache whose type matches one or more of the bits in typeBits.
Get the most specific namespace matching a given key.
