Image Caching problem
-
Hi, I found this answer helped to solve my problem with image caching. I thought i will share with the group..Thanks to Benjamin.. Previous problem: I am uploading an image and replacing existing image. I have upload button that I am uploading the image with. How can I write code such that the uploaded image displays immediately. If I use different file name for the image the file displays by setting up imageurl. However if I want to use the same file name as this image has to be displayed in other web application that runs on asp, the image does not load until I do a manual refresh of the page. It does not load even if I do a response.redirect to the same page. I believe it may be cache problem, if it is how to rectify it? Raj D You can configure this in IIS MMC by navigating to the folder containing the images and adjusting the HTTP Headers to either "expire immediately" or "never expire". -- Benjamin Strackany http://www.developmentnow.com
Raj D