The application cache service manages the set of application cache
groups.
Create group string identifying cache group according the manifest
URL and the given load context.
Same as buildGroupID method, just doesn’t require load context.
Create a new, empty application cache for the given cache
group.
Create a new, empty application cache for the given cache
group residing in a custom directory with a custom quota.
group | URL of the manifest |
directory | Actually a reference to a profile directory where to create the OfflineCache sub-dir. |
quota | Optional override of the default quota. |
Get an application cache object for the given client ID.
Get the currently active cache object for a cache group.
Deactivate the currently-active cache object for a cache group.
Deletes some or all of an application’s cache entries.
appId | The mozIApplication.localId of the application. |
discardOnlyBrowserEntries | If true, only entries marked as 'inBrowserElement' are deleted (this is used by browser applications to delete user browsing data/history.). If false, *all* entries for the given appId are deleted (this is used for application uninstallation). |
Try to find the best application cache to serve a resource.
Flags the key as being opportunistically cached.
This method should also propagate the entry to other
application caches with the same opportunistic namespace, but
this is not currently implemented.
cache | The cache in which the entry is cached now. |
key | The cache entry key. |
Get the list of application cache groups.
Get the list of application cache groups in the order of
activating time.