用于非IE浏览器的浏览器缓存API

时间:2009-06-10 19:38:09

标签: firefox caching xpcom wininet gecko

IE具有WinInet API,例如GetUrlCacheEntryInfo,用于读取和操作IE浏览器缓存。

对于非IE浏览器(如Firefox或Chrome),是否有类似的API?如果是这样,我可以在哪里获得更多信息?

由于

更新

根据以下(Accessing Firefox cache from an XPCOM component),WinInet函数GetUrlCacheEntryInfo()可以通过nsICacheSession.openCacheEntry()来完成,以获取nsICacheEntryDescriptor。是否有一个等效的WinInet函数CreateUrlCacheEntry(),它将创建一个缓存条目?

4 个答案:

答案 0 :(得分:0)

看起来不像。我见过的所有解决方案都是强制性的:

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

答案 1 :(得分:0)

我一直在寻找同样的东西,这里适用于Chrome: http://dev.chromium.org/developers/design-documents/disk-cache

答案 2 :(得分:0)

对于网页使用,您可能希望查看YUI存储实用程序

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

答案 3 :(得分:0)

事实证明,使用ACCESS_READ_WRITE调用nsICacheSession.openCacheEntry()将创建缓存条目。