HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › disabling image caching does not work
- This topic has 1 reply, 2 voices, and was last updated Oct 05, 2011
13:58:06 byPD4ML.
-
AuthorPosts
-
October 3, 2011 at 13:13#26612
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:sichtwahlSichtwahlOptimierungproduct_images1249_6458823p3.jpg?dummy=111111 (The filename, directory name, or volume label syntax is incorrect): file://localhost/d:/sichtwahl/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=111111 image file://localhost/d:/sichtwahl/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=111111 has zero length. can not load image: file://localhost/d:/sichtwahl/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=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/SichtwahlOptimierung/product_images/1249_6458823p3.jpg?dummy=111111 ???
any ideeas?
October 5, 2011 at 13:58#28681/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 printed to the log or STDOUT?
-
AuthorPosts
The forum ‘Troubleshooting’ is closed to new topics and replies.
