Question : php force image refresh
Answered by : andrew-hyder
<img src="imagename.png?r=<?echo(rand());?>"> //produces a random number in url
Source : | Last Update : Sun, 09 Aug 20
Question : PHP force refresh image
Answered by : muro-bakuridze
//In PHP you can send a random number or the current timestamp
<img src="image.jpg?<?=Date('U')?>">
//or
<img src="image.jpg?<?=rand(1,32000)?>">
Source : https://stackoverflow.com/questions/16526363/php-force-refresh-image | Last Update : Thu, 10 Mar 22