views:

374

answers:

6

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 (http://stackoverflow.com/questions/61453/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?

A: 

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

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

Stu
http://stackoverflow.com/questions/61453/accessing-firefox-cache-from-an-xpcom-component explains
MaxK
A: 

You mean as a web developer or as a browser developer?

benc
This should have been a comment.
BalusC
yeah, I think I clicked in the wrong panel... I realized that after I hit "save"....
benc
A: 

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

wliao
A: 

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

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

Dapeng
A: 

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

MaxK
A: 

OESIS Framework supports programmatic management several non-IE browsers (plus IE). A brief description of the browser module and a list of support browsers is at http://www.opswat.com/products/oesis-frameworkae/oesis-local/web-browsers