hi, i have an upload function where i can upload image to server. However, if i upload an image with the same name, the page which load the image does not reflect on the newly uploaded image. Instead it loads the old image, note that the server already has the latest image.
I only manage to get the new image loaded on the page if i click the browser refresh button.
it actually only load the new image if i press refresh button. Say the image is my website banner, the 1st time i upload the image, name banner.jpg, it will immediately show after i click my save button.
However, if i change the banner with another different image, but name as banner.jpg (same as the 1st image), it will overwrite the old image in the server. The problem is, once i clicked save button, my banner is still the old image, not the newly uploaded image. Only by clicking the refresh button (F5), then it will load up the new image.
it might be because of the BROWSER caching the image at the first go ... the first time you load the page.
Then when you replace the image with an image having the exact same name ... BROWSER first checks it's cached library then searches the HDD
What are you saying? I thought you said that Santa gave you that. And this tiny ad: