Per disabilitare la cache del browser, metti questi header all'inizio della pagina
Codice PHP:
<?php
// Presi da php.net [url]http://it.php.net/manual/en/function.header.php[/url]
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
Tieni presente che però il no-cache vale per tutta la pagina
In alternativa potresti mettere nei src delle immagini un campo random
Codice PHP:
[img]<?php echo $img_path ?>?t=<?php echo time() ?>[/img]
Il browser dovrebbe credere che l'immagine non è in cache, visto che time() cambierà ad ogni caricamento della pagina