Re: Clearing appcache entries

2013-04-16 Thread Neil
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)

Re: Clearing appcache entries

2013-04-16 Thread Gavin Sharp
On Mon, Apr 15, 2013 at 9:50 AM, Gavin Sharp ga...@gavinsharp.com 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

Clearing appcache entries

2013-04-15 Thread mratcliffe
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

Re: Clearing appcache entries

2013-04-15 Thread Honza Bambas
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:

Re: Clearing appcache entries

2013-04-15 Thread mratcliffe
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

Re: Clearing appcache entries

2013-04-15 Thread Gavin Sharp
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