I am uploading a file(Image) on the server, and saving it with one unique name. Now previewing it on the browser where file fetched from the ser开发者_如何学Cver.
Now, I changed the file(image), but save with that previous unique name only. But, while previewing it, browser is showing previous file.
I figured it out as a cookie problem. So after deleting cookie from the browser manually, I were able to see the new file.
It is a caching issue, not cookie. You might have cleared your browser cache as well when you cleared your cookie, so the new image appeared.
You might want to check your server configuration for caching expiration header.
If you don't know how to change it (I can't show you how because it depends on your server environment), pressing Ctrl + F5 on your browser to perform a no-cache refresh might help you see your new image right away.
精彩评论