On Nov 29, 11:15 pm, Honza Bambas <[email protected]> wrote:
> You may QI the channel to nsIApplicationCacheChannel and check for
> loadedFromApplicationCache attribute.
ok, works for me, thanks.

> I'm just interested in how you recognize a bfcache load,
> nsIWebProgressListener::STATE_RESTORING flag check?
Firebug is using http-on-examine-cached-response event

So, does the following logic make sense?

1) If http-on-examine-cached-response is sent, the associated response
comes from a cache (app or bf cache).

2) If channel is instance of nsIApplicationCacheChannel and
loadedFromApplicationCache is true, it comes from app cache
otherwise it comes from bfcache.

Honza
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to