Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p:graphicImage with StreamedContent generates different pfdrid query string value on every request #1765

Closed
BalusC opened this issue Sep 17, 2016 · 0 comments
Assignees
Labels
🐞 defect Bug...Something isn't working
Milestone

Comments

@BalusC
Copy link

BalusC commented Sep 17, 2016

p:graphicImage with StreamedContent generates different pfdrid query string value on every request. This has the consequence that the client side cache is busted on every request and thus client won't reuse the cached image anymore and re-download the image on every request.

It worked correctly in PF 5.3 as pfdrid represents the encrypted form of the EL string and thus remains constant across requests: https://github.com/primefaces/primefaces/blob/5_3/src/main/java/org/primefaces/util/DynamicResourceBuilder.java#L53

It broke in PF 6.0 as pfdrid has become a random UUID and thus changes across requests: https://github.com/primefaces/primefaces/blob/6_0/src/main/java/org/primefaces/util/DynamicResourceBuilder.java#L59

Reference: http://stackoverflow.com/q/38528856/157882

@tandraschko tandraschko added the 🐞 defect Bug...Something isn't working label Sep 17, 2016
@tandraschko tandraschko added this to the 6.1 milestone Sep 17, 2016
@tandraschko tandraschko self-assigned this Sep 17, 2016
tandraschko added a commit that referenced this issue Sep 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants