Click here to Skip to main content
15,884,176 members

Response to: Clear the Browser History using PHP

Revision 2
That's easy to do by adding a dummy random parameter to the image URL like this:
<img src="./images/1.jpg?dummy=1244356234"/>


Instead of using a random number you could just use an increasing counter that gets incremented every time you change the images.

Another approach would be to set a header that will prohibit the image being cached by the browser.

Regards,
— Manfred
Posted 6-Oct-12 12:25pm by Manfred Rudolf Bihy.