On Mon, Apr 15, 2013 at 9:50 AM, Gavin Sharp wrote:
> The only possibly-related code I see in Firefox's "Forget about this
> Site" functionality is this:
>
> http://hg.mozilla.org/mozilla-central/annotate/261d6997d1d1/toolkit/forgetaboutsite/ForgetAboutSite.jsm#l179
>
> Which uses nsIQuotaManager.
mratcli...@mozilla.com wrote:
I believe I can clear *all* appcache entries using:
Services.cache.evictEntries(Ci.nsICache.STORE_OFFLINE);
But how the heck do I:
- Clear all entries for a single cache group
- Clear all entries for a string match (e.g. domain)
- Clear a single entry (or by URI)
The only possibly-related code I see in Firefox's "Forget about this
Site" functionality is this:
http://hg.mozilla.org/mozilla-central/annotate/261d6997d1d1/toolkit/forgetaboutsite/ForgetAboutSite.jsm#l179
Which uses nsIQuotaManager. A quick look at the implementation
suggests it doesn't cover "
That will work to clear the group but most users will want to use our tools to
clear the cache for a single URI or domain (they probably have no idea what a
group is).
How is this done?
On Monday, April 15, 2013 3:22:00 PM UTC+1, Honza Bambas wrote:
> Thanks for bringing this up Mike. True is
Thanks for bringing this up Mike. True is that our appcache
implementation and APIs a bit suck. But good news is that it is going
to be much better with APIs being currently newly proposed and discussed
for Necko's disk cache (so far, privately, soon it will open).
To answer your issue:
var
I believe I can clear *all* appcache entries using:
Services.cache.evictEntries(Ci.nsICache.STORE_OFFLINE);
But how the heck do I:
- Clear all entries for a single cache group
- Clear all entries for a string match (e.g. domain)
- Clear a single entry (or by URI)
I have been trying to work this o
6 matches
Mail list logo