Uploaded photos and cache problem...
Posted: Wed Oct 26, 2005 3:51 am
Hi there,
I have a PHP script that uploads photo onto the server and then displays the photo for you. You can also overwrite an uploaded photo with a new photo if you wish.
My problem is, when I've uploaded a new photo, which overwrites the old photo, it displays the old photo ("on the your photo has upload" page) until you refresh the page... So I'm guessing it saves the old photo in the cache until you refresh the page...
Is there anyway I can force the browser to show the new photo and not the old photo without reloading the page?
I have a PHP script that uploads photo onto the server and then displays the photo for you. You can also overwrite an uploaded photo with a new photo if you wish.
My problem is, when I've uploaded a new photo, which overwrites the old photo, it displays the old photo ("on the your photo has upload" page) until you refresh the page... So I'm guessing it saves the old photo in the cache until you refresh the page...
Is there anyway I can force the browser to show the new photo and not the old photo without reloading the page?