Accessing Firefox cache from an XPCOM component
问题 Does anybody know how to get local path of file cached by Firefox based on its URL from an XPCOM component? 回答1: 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