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 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-
> 
> 
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to