I use a Img() object to render an image. Then, using a servlet, I modify the image on the server.
Then I want to reload the image, force a redraw with the new version on the server. How to by-pass the caching from browsers?
I tried this:
but to no avail.
NB: The servlet currently does not return the modified image, but an succes message, upon which I want to redownload the image. Should the server 'stream' the image back directly? If so, how to incorporate something like this in the DSRequest/DSResponse flow?
Then I want to reload the image, force a redraw with the new version on the server. How to by-pass the caching from browsers?
I tried this:
Code:
myImg.resetSrc();
NB: The servlet currently does not return the modified image, but an succes message, upon which I want to redownload the image. Should the server 'stream' the image back directly? If so, how to incorporate something like this in the DSRequest/DSResponse flow?
Comment