Reputation: 1444
What is the best approach to caching images in asp.net?
Upvotes: 2
Views: 3211
Reputation: 26976
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:
Upvotes: 7