How to disable cache for some images - PHP

加上如下的HTTP头就可以了~

header("Pragma-directive: no-cache");

header("Cache-directive: no-cache");

header("Cache-control: no-cache");

header("Pragma: no-cache");

header("Expires: 0");

via caching - disable cache for some images - Stack Overflow.