:bemused: Apologies to the cat.
The xhtml page that the image was being viewed in was not cached anyway...
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Pragma: no-cache');
header('Cache-Control: no-cache, must-revalidate');
header('Content-type: text/html; charset=iso-8859-1');
But I have added these headers to the GD image also...
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Pragma: no-cache');
header('Cache-Control: no-cache, must-revalidate');
header('Content-type: image/png');
In a little test, using no headers on either the xhtml page or the image. I found that static images were cached, but the php dynamic image wasn't... Just a thought. :rolleyes: