Forum Moderators: coopster
When you display the image, just append a random number/character string after the image extension, i.e. image.gif?123abc
The browser treats this as a different request, so it'd always load the image afresh. This renders caching pretty useless though.
To do your random number thing, all you need is something like this:
$r = md5(rand(0,999));
echo "<img src='/path/to/image.gif?$r>";