07-06-2008, 03:03 AM
|
#1 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
No cache display of image?
Is there a way I can use PHP to force an image to display?
I don't want to set no-cache headers via my .htaccess as I have it doing exactly the opposite for the rest of the site images (far-future expires), and I don't want the script to rely on any outside caching/no-caching directives.
Right now I display a users avatar with a simple little function that just determines if one exists for them then creates the HTML img element for it and echo's that back to the browser. This works fine for the most part except that when a new avatar is uploaded, the page that loads displays the old image until you refresh the browser, and I want it to display immediately.
-m
|
|
|
|