cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sparkes <>
Subject Re: Image caching problem using FOP
Date Thu, 07 Aug 2008 19:18:01 GMT
Thanks Andy,

Now working

Thanks again

> 2008/8/7 Peter Sparkes <>:
>> I have pages that can be viewed as xhtml and pdf which is generated by FOP.
>> When I change the images, using the same image filenames, the new images
>> appear in the xhtml version, however the old images are shown in the pdf
>> version. If  I use new images with different file names the new images
>> appear  in the PDF. However as I am generating the image file names
>> programmatically I have to keep the old names.
> It's a FOP "feature".  From
> "FOP caches images between runs. There is one cache per FopFactory
> instance. The URI is used as a key to identify images which means that
> when a particular URI appears again, the image is taken from the
> cache. If you have a servlet that generates a different image each
> time it is called with the same URL you need to use a constantly
> changing dummy parameter on the URL to avoid caching."
> Like the man said, add a dummy request parameter to the URI with some
> unique value e.g. a hash of the session ID and current time.
> Andy.
> ------------------------------------------------------------------------
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 270.5.12/1597 - Release Date: 07/08/2008 05:54

View raw message