0

Image dinamic src

asked 2020-02-25 12:16:37 +0800

mfinis gravatar image mfinis
3

Hello, I ask for your support because when using the Image component when sending the route dynamically, it shows in some cases old images that had previously been shown. I don't know if it's because of cache or what might be happening. The version of zk he used is 8.5. I need your support and I have reviewed everything in terms of java and handling of the component's objects.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-26 14:27:04 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2020-02-26 14:30:44 +0800

if you're not sure about caching, the current modern browsers have integrated developer tools to analyse the network traffic and indicate whether caches take effect or the contents are downloaded. e.g. in chrome:

https://developers.google.com/web/tools/chrome-devtools/network

To avoid unintended caching it's a good practice to make sure different images have different urls, and same images have the same url. E.g. by generating a hash code or version for a resource and append it to the url:

E.g.

  • "images/logo.png?v=1"
  • "images/logo.png?hash=34adc9f8b34"

like that the exact same version/hash can be cached by the browser, and different contents are loaded reliably when needed.

If you prefer dedicated support, get in contact with us.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2020-02-25 12:16:37 +0800

Seen: 8 times

Last updated: Feb 26 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More