Hi all

I can't get to remove one image file from Firefox's cache.
I found this code, but it does not work for me.

var url = "http://test.com/test.jpg";
try {
var IOService = GetIOService();
if (IOService)
{
if (GetScheme(url))
{
var uri = IOService.newURI(url, null, null);
if (uri)
{
var imgCacheService = Components.classes["@mozilla.org/
image/cache;1"].getService();
var imgCache = imgCacheService.QueryInterface
(Components.interfaces.imgICache);

imgCache.removeEntry(imgURI);
}
}
}
} catch(e) { }