0 Replies Latest reply on Apr 4, 2012 7:05 AM by Jyothi Praseep

    Deleting application cache programatically

      Hi,

       

      Is it possible to clear application cache through javascript other than searching for and deleting the file? For eg, I found a post which mentions caching can be cleared in mozilla in the following way,

      // invalidates the cache manifest
      var mani = "http://.../mysite.manifest"; // manifest URL
      Components.classes["@mozilla.org/network/application-cache-service;1"] .getService(Components.interfaces.nsIApplicationCacheService).getActiveCache(mani).discard();

      What would be the best way to achieve the same in rho elements?