I'm trying to prevent the caching of an image on my website. You see, the image is created dynamically, and when the user navigates throughout the site it changes each time. However, it's when the user tries to go back is the problem. The previous image is displayed instead of the new, dynamically created one. The correct image is created, it's just not being displayed. I have no idea where the previous image comes from, because it's destroyed right after its displayed and the buffer is cleared, so it must be the cache.
I have included these tags on every page of my website:
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
The rest of my code is php and a little bit of javascript. The image is rendered using GD.
Any ideas?