我正在尝试以素面渲染图形图像,但始终返回404。在Chrome调试中,我可以看到如下所示的地址图片:
/UltracarWeb/Images/1427303591376_image.png?pfdrid_c=true"
使用我更改为的Chrome调试:
/UltracarWeb/Images/1427303591376_image.png?pfdrid_c=false" , then the image is rendered.
我以这种方式在xhtml中调用graphicImage:
<p:graphicImage style="max-width: 110px; max-height: 140px;"
value="#{product.PhotoUrl}"
rendered="#{not empty product.Url}">
</p:graphicImage>
我已经尝试过使用缓存false和true,但仍然无法正常工作。
URL不为空,因为我在调试中检查了此地址。调试Java代码时,我看到了没有?pfdrid_c = true的product.url,但是在浏览器中,调试了?pfdrid_c = true出现。
此?pfdrid_c = true是素数常量,它引用动态高速缓存,但是我不知道如何删除它?
?pfdrid_c=true
的参数Cache-Control
我正在这样使用它(primefaces元素):