Reputation: 52241
I have implemented caching Images in my website, It is working fine in IIS 6 but not working in IIS 7 problem is images not shown on my website on iis7 hosted server but shown on iss6 hosted server
I have implemented caching using this Article....
http://www.codeproject.com/KB/aspnet/CachingImagesInASPNET.aspx
Does anyone have any idea what's going wrong or anyone have good suggestion regarding Image caching.....Any hellp will realy appreciated...
Thanks
Upvotes: 2
Views: 3074
Reputation: 333
Here's a quick edit to web.config for caching images/css/js in .NET
<staticContent>
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
see this post: http://madskristensen.net/post/Add-expires-header-for-images.aspx
Upvotes: 3
Reputation: 3963
You might need to register the handler... Is it in you web.config for IIS7?
try looking at this link?
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
IIS7 file mappings - .asax, .ashx, .asap
Upvotes: 0