Click to See Complete Forum and Search --> : Dynamic Images not Changing Correctly


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.

AdamGundry
11-25-2003, 11:50 AM
Perhaps this article will help (addresses a similar but not identical problem):

http://www.faqts.com/knowledge_base/view.phtml/aid/7978/fid/3

Adam

Geat
11-26-2003, 02:39 AM
That sounds good - cheers mate...

On an unrelated note, what part of Cornwall are you from?

AdamGundry
11-26-2003, 11:29 AM
Camborne - West Cornwall. Why, may I ask?

Adam

Geat
11-27-2003, 02:35 AM
No way! I'm from just outside Redruth originally. Small world, ain't it?