在缓存在ASP.Net形象在IIS 7中问题 [英] Problem in Caching Images in ASP.Net in IIS 7
问题描述
我已经在我的网站上实施的缓存图像,它工作正常的 IIS 6 ,但没有工作的 IIS 7 的问题是在IIS7在我的网站上没有显示图像托管服务器,但iss6托管服务器上显示
我已经使用本文实现的高速缓存....
HTTP://www.$c$cproject.com/KB/aspnet/CachingImagesInASPNET的.aspx
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
有没有人有任何想法什么错误或任何人有任何关于图片的缓存好的建议.....任何HELLP会真的AP preciated ...
感谢
Does anyone have any idea what's going wrong or anyone have good suggestion regarding Image caching.....Any hellp will realy appreciated...
Thanks
推荐答案
下面是一个简单的编辑web.config中的缓存图像/ .NET中的CSS / JS
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>
看到这个帖子: http://madskristensen.net/post/附加过期标头换images.aspx
这篇关于在缓存在ASP.Net形象在IIS 7中问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!