Cant you just do a javascript refresh?
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Have messed this up b4
If the nocache code is getting displayed in the browser in the output window
Assuming the page displayed is "page.php"
page.php includes the line <img src="getImageFromDatabase.php" alt='database blob image'> or something similar
The nocache code previously listed should be inserted in the of "page.php" not "getImageFromDatabase.php" else that code is output to the browser as well as (or instead of) the image
the nocache code should work
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
for me it is 3am
corrected text should read
The nocache code previously listed should be inserted in "page.php" not "getImageFromDatabase.php" else that code is output to the browser
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
To ensure an image is reloaded, send a unique URL.
eg:

Where random_number123 can be generated by:
<?php
$random = microtime(true);
// eg
echo '<img src="image.php?'.$random.'" />';
?>
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
lyrico
Junior Poster in Training
94 posts since Dec 2010
Reputation Points: 33
Solved Threads: 15