I have a very basic page that displays a dynamic image. Here is my very simple code:
<html>
<body>
<p><img width=1024 height=768 src="../image/someImage.jpg"></p>
</body>
</html>
The image gets refreshed every minute by another program. The issue is that occasionally the html page will not display the updated image on anyone’s computer, so it isn’t a local cache issue. I am using IIS6. The only way to get it to display the updated image is by stopping and starting IIS for that site.
My company only uses IE, but I tried looking at it in FireFox as well and it did the same.
For a quick fix, append a question mark and a random number to the end of the image path. PHP Example:
The real root of the problem could be expiration headers. You may want to configure the headers for images to expire sometime in the past. Google around for expiration headers.