Hi all,

From my chrome application, I need to invalidate some cache entries of HTML files, in order to make those pages be reloaded next time they are displayed.

I use my own instance of nsICacheVisitor to walk through cached entries, and I can locate the desired entries. However, the nsICacheVisitor API only provides me with a nsICacheEntryInfo interface, while the method to invalidate the entry is located in the nsICacheEntryDescriptor interface.

The only way I see to get an instance of nsICacheEntryDescriptor is to use a method from interface nsICacheSession, openCacheEntry or asyncOpenCacheEntry. Is there a "global" cache session I can get somewhere ?

If I create my own cache session with the createSession method of @mozilla.org/network/cache-service;1, and use it to call openCacheEntry or asyncOpenCacheEntry from my nsICacheVisitor instance, firefox enters into some kind of deadlock and freezes.

Does anyone have a suggestion for invalidating cache entries ? Is it possible at all ?

Thanks,
/mig
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to