Guest User

Untitled

a guest
Jan 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // load the disk cache
  2. var cacheservice = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
  3. .getService(Components.interfaces.nsICacheStorageService);
  4. var {LoadContextInfo} = Components.utils.import("resource://gre/modules/LoadContextInfo.jsm",{})
  5. var hdcache = cacheservice.diskCacheStorage(LoadContextInfo.default, true);
  6.  
  7. // compose the URL and submit it for dooming
  8. var uri = Components.classes["@mozilla.org/network/io-service;1"]
  9. .getService(Components.interfaces.nsIIOService).newURI(prompt("Enter the URL to kick out:"), null, null);
  10. hdcache.asyncDoomURI(uri, null, null);
Add Comment
Please, Sign In to add comment