Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIApplicationCacheChannel

This interface is implemented by communication channels that support application caches.
1.0
28
Introduced
Gecko 1.9.1
Inherits from: nsIApplicationCacheContainer Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Method overview

void markOfflineCacheEntryAsForeign();

Attributes

Attribute Type Description
chooseApplicationCache boolean

When true, the channel will choose an application cache if one was not explicitly provided and none is available from the notification callbacks. The default value is false.

This attribute will not be transferred through a redirect.

Exceptions thrown
NS_ERROR_ALREADY_OPENED
If set after calling AsyncOpen() on the channel.
inheritApplicationCache boolean

true if the channel will ask its notification callbacks for an application cache if one is not explicitly provided. The default value is true.

Exceptions thrown
NS_ERROR_ALREADY_OPENED
If set after calling AsyncOpen() on the channel.
loadedFromApplicationCache PRBool true if the resource was loaded from the application cache, otherwise false. This value may be false even if the resource is assigned to an application cache if, for example, it was loaded as a fallback. Read only.

Methods

Requires Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

markOfflineCacheEntryAsForeign()

A shortcut method to mark the cache item of this channel as 'foreign'. See the 'cache selection algorithm' and CACHE_SELECTION_RELOAD action handling in nsContentSink.

void markOfflineCacheEntryAsForeign();
Parameters

None.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Jürgen Jeka
 Last updated by: Sheppy,