Search code examples
firefoxcachingxpcomwininetgecko

Browser Cache API for non IE browsers


IE has WinInet API, such as GetUrlCacheEntryInfo, to read and manipulate IE browser cache.

Is there a similar API for non IE browsers such as Firefox or Chrome? If so where can I get more info?

Thanks

Update:

According to following (Accessing Firefox cache from an XPCOM component) the WinInet function GetUrlCacheEntryInfo() can be accomplished by nsICacheSession.openCacheEntry() to get nsICacheEntryDescriptor. Is there an equivalent WinInet function CreateUrlCacheEntry() which will create a cache entry?


Solution

  • It turns out that calling nsICacheSession.openCacheEntry() with ACCESS_READ_WRITE will create the cache entry.