views:

546

answers:

1

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
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