PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: disabling image caching does not work
   PostPosted: 03 Oct 2011, 15:13 
Hi,

I'm using pd4ml.volume.371b4.

I'm trying to disable image caching because in my applicaction images are currently replaced.

I've tried two alternatives:

1:

<pd4ml:parameters>
<pd4ml:parameter key="pd4ml.cache.enable" value="false"></pd4ml:parameter>
</pd4ml:parameters>

old images are still displayed.

2:

append a suffix:

<img src="/product-images/imageName.jpg?dummy=<%=(int)Math.floor(Math.random() * Math.pow(10, 7)) %> "

images are not displayed anymore.
I'm getting the following massages when using debug mode:

Loading via HTTP Request dispatcher: //localhost/d:/sichtwahl/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=111111
RequestDispatcher.include() returned code 404
d:\sichtwahl\SichtwahlOptimierung\product_images\1249_6458823p3.jpg?dummy=111111 (The filename, directory name, or volume label syntax is incorrect): file://localhost/d:/sichtwahl/Sichtwahl ... mmy=111111
image file://localhost/d:/sichtwahl/Sichtwahl ... mmy=111111 has zero length.
can not load image: file://localhost/d:/sichtwahl/Sichtwahl ... mmy=111111



but while putting this:
file:///d:/sichtwahl/SichtwahlOptimierung/product_images/1249_1669981p3.jpg?dummy=111111
into the browser brings it me the image.

why Loading via HTTP Request dispatcher: //localhost/d:/sichtwahl/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=111111 ???

shouldn't be : Loading via HTTP Request dispatcher: file://localhost/d:/sichtwahl/Sichtwahl ... mmy=111111 ???

any ideeas?


  Subject: Re: disabling image caching does not work
   PostPosted: 05 Oct 2011, 15:58 
/product-images/imageName.jpg points to a local file system resource. A dummy suffix makes the path invalid. So first I would recommend to remove it.

Also please check my recent reply to post1898.html#p1898

Did you get anything like cache disabled. (re-)reading <URL> printed to the log or STDOUT?



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share