What is the best approach to caching images in asp.net?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where do you want to cache them?
If you want users/proxies to cache your site’s images, the best way to do that would be to set up the caching in IIS on the folders containing your static content (images/JS/css), with suitable cache-busting strategies in place to ensure that if you do update them the calling clients get the latest versions.
In IIS 6 and below, you can do this by:
In IIS 7 you can do this by: