I'm creating an image depends on user's input. This functionality didn't work properly in IE. Because My IE displays the image only from cache not from server. I used bellow code to prevent Image store in browser's cache.
I doesn't have any problem in firefox browser But I don't know Why the problem happens in IE. Please anyone tell me.
<img src="imageGeneratingServlet?time=<%=new java.util.Date().getTime() %>" />
<img id="myImg" src=""/>
document.getElementById("myImg").src = "imageGeneratingServlet?time="+new Date().getTime();
[Edit: removed a problem with <img> tag]
Once done that, clear the browser cache once again before testing.
At any way, I would say, why would you create a whole Date object and getting only its time instead of just calling System#currentTimeMillis()?
Last but not least, this is not a solution, but a workaround.
Bauke Scholtz wrote:There are checkboxes with several options right under the message editor. Have you noticed them? Do you (as being webdevelopers) actually understand what each of they do?
Ohh yes. I didn't notice them earlier.
Bauke Scholtz wrote:At any way, I would say, why would you create a whole Date object and getting only its time instead of just calling System#currentTimeMillis()?
I never thought of that
Bauke Scholtz wrote:Last but not least, this is not a solution, but a workaround.
Well I told what I used when I faced a similar problem. So just relax. I know what you told was also correct. But may be he was not able to understand it. So just chill ...