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 appcacheservice = Cc["@mozilla.org/network/application-cache-service;1"].getService(Ci.nsIApplicationCacheService); var groupid = appcacheservice.buildGroupID(yourManifestURL, null); // or use buildGroupIDForApp when deleting an app appcache entries
appcacheservice.deactivateGroup(groupid);

And you are done.

-hb-

On 4/15/2013 3:54 PM, 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)

I have been trying to work this out for a few days now but surely somebody 
knows how it can be done, surely it can be done?

We need good appCache DevTools but we really need this capability in order to 
write them, ask Potch, he understands my pain.

/me resolves to stop banging my head against the wall, the appcache scares me.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to