Re: Image Cache

Michal Ceresna <[email protected]> Fri, 27 Jul 2007 12:54:26 +0200
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <200707271254.27761.michal.ceresna__26431.7556903281$1185533728$gmane$org@gmail.com>
On Friday 27 July 2007, [email protected] wrote:
Hi Richard,

> Does anyone know if it is possible (and if so how to) access the
> browser cache (specifically the images) via JavaXPCOM, I have the
> bowser instance up and running and am able to use it to open pages
> etc.  I need to do some processing on the images of a page.  The
> filenames of the images for the current page would be ideal so that i
> can load this file in my Java code and use it from there.
If you want to browse the browser cache, the easiest way is
using the url about:cache

Afaik, the image data is not accessible over scriptable
interfaces (javaxpcom).

Therefore also code such as 'Save Pase As' re-downloads all 
images again. Of course, in most cases it obtains cache hits 
because the page with images was already loaded.

regards,
Michal