This is possible through a few lines of script (to run in the browser console, Ctrl+Shift+J):
var cacheservice = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
.getService(Components.interfaces.nsICacheStorageService);
var {LoadContextInfo} = Components.utils.import("resource://gre/modules/LoadContextInfo.jsm",{})
var hdcache = cacheservice.diskCacheStorage(LoadContextInfo.default, true);
var uri = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService).newURI(prompt("Enter the URL to kick out:"), null, null);
hdcache.asyncDoomURI(uri, null, null);
As long as you know the absolute URL of the CSS file, you can replace it prompt("Enter the URL to kick out:")with a URL.
Adapted from DoomEntry.js , confirmed to work with the latest Firefox (Quantum).
source
share