Geat
11-25-2003, 07:20 AM
I use PHP to generate a PNG image that displays a graph. However, I find that if the user re-submits the form with the different data to be displayed, the image appears exactly the same.
However, if I alternate the filename of the image between two different filenames, every time the page is refreshed the graphic gets displayed correctly.
This is obviously some kind of caching problem (the problem happens in IE 5 and above), and I've tried using META data and expiry dates to get the system working, but as of yet to no avail.
I was hoping that other developers have encountered this, and have come up with a more elegant solution than the alternating filenames.
However, if I alternate the filename of the image between two different filenames, every time the page is refreshed the graphic gets displayed correctly.
This is obviously some kind of caching problem (the problem happens in IE 5 and above), and I've tried using META data and expiry dates to get the system working, but as of yet to no avail.
I was hoping that other developers have encountered this, and have come up with a more elegant solution than the alternating filenames.