Access Firefox Cache from XPCOM

Does anyone know how to get the local file path cached by Firefox based on its URL from the XPCOM component?

+2
source share
1 answer

To access cached items, a new cache session must be created using the createSession method provided in nsICacheService . This method creates an nsICacheSession object. Information about the cache item can be obtained using the openCacheEntry method of the session object (return method nsICacheEntryDescriptor ). To read data, the user must open the input stream using the openInputStream method of the cache write object.

+4
source

Source: https://habr.com/ru/post/1710196/


All Articles