Does anybody know how to get local path of file cached by Firefox based on its URL from an XPCOM component?
+3
A:
To access cached items, new cache session must be created using createSession method provided in nsICacheService. This method creates nsICacheSession object. Information about cache item can be obtained using openCacheEntry method of the session object (method return nsICacheEntryDescriptor). To read data user must open input stream using openInputStream method of the cache entry object.
Mladen Jankovic
2008-09-14 19:29:37
Do you happen to know if it is possible to create a cache entry. Another words, is there a method like createCacheEntry()? I have a file on disk which I would like to add to Firefox cacheThanks.
MaxK
2009-11-29 20:50:52