On 11/30/2012 8:25 AM, Jan Honza Odvarko wrote:
On Nov 29, 11:15 pm, Honza Bambas <hbam...@mozilla.com> 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).
no, it means it comes from either of http cache (disk cache or memory
cache on level of http) or from app cache. I don't think bf-cache
restore loads trigger http-on-examine-cached-response at all.
2) If channel is instance of nsIApplicationCacheChannel and
loadedFromApplicationCache is true, it comes from app cache
otherwise it comes from bfcache.
Maybe you just misuse the name "bfcache" here. if you s/bfcache/http
cache/ then it makes sense.
-hb-
Honza
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform