3

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?

Community
  • 1
  • 1
MaxK
  • 3,511
  • 4
  • 20
  • 16

4 Answers4

0

I was looking for the same thing, and here it is for Chrome: http://dev.chromium.org/developers/design-documents/disk-cache

wliao
  • 159
  • 3
  • 11
0

for web page usage, you may want to view the YUI storage utility

http://developer.yahoo.com/yui/storage/

Dapeng
  • 1,704
  • 13
  • 25
0

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

MaxK
  • 3,511
  • 4
  • 20
  • 16
0

Doesn't seem like it. All solutions I've seen brute-force it:

http://www.codeproject.com/KB/system/firefoxbrowsercache.aspx

Stu
  • 15,675
  • 4
  • 43
  • 74
  • http://stackoverflow.com/questions/61453/accessing-firefox-cache-from-an-xpcom-component explains – MaxK Nov 29 '09 at 02:37