On Fri, Dec 24, 2004 at 03:04:52AM +0100, Benoit Lefevre wrote: > Unfortunately, the way to use it is still a bite fuzzy. I'm planing to > get a > file back from the cache according to a given URI.
That might be problematic, for two reasons: o) Not all disk cache entries are stored as separate files o) not all cached entities are stored in disk cache at all (esp. HTTPS) > I have the bad feeling that it's not as simple as having a 1:1 > mapping between a URI and a key :( I would suggest using normal necko APIs to load your URI; passing LOAD_FROM_CACHE as load flags if desired. This will give you an input stream; this may be sufficient for what you want. (nsIChannel::asyncOpen / nsIChannel::open, after nsIIOService::newChannel) -- _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
