为什么2010 Cassini提供静态文件时性能会变慢? [英] Why is performance is slow when 2010 Cassini serves static files?
问题描述
在2010年以调试模式运行站点时,当卡西尼提供静态文件时,我会获得令人难以置信的缓慢性能。据Firebug称,每个请求解析20张2kb图像大约需要1秒钟。
When running a site in debug mode on 2010 I get incredible slow performance when cassini serves static files. According to Firebug it takes about 1 seconds for each request to resolve on 20 2kb images.
我没有更改任何设置,只是完成了直接安装,然后转换了几个项目。重新启动计算机,重新加载IIS,但没有解决任何问题。
I haven't changed any settings, just have done a straight up install followed by converting a couple of projects. Rebooted the computer, reloaded IIS without solving anything.
我在stackoverflow.com上确实遇到了另一个问题:
VS 2010 ASP.NET开发服务器提供静态文件时发生异常
I did have a different problem which I asked about on stackoverflow.com: Exception when VS 2010 ASP.NET Development Server Serves Static Files
我的问题有关系吗?
关于什么是错的任何想法或我应该尝试重新安装?
Any ideas on what could be wrong or should I try a reinstall?
更新:这并非特定于任何浏览器,所有浏览器的速度都与加载我的资源一样慢。
Update: This is not specific to any browser, all of them are just as slow as loading my resources.
推荐答案
查看有关此问题的公认答案,如果您使用Firefox作为浏览器,则该答案非常相关:
Check out the accepted answer on this question, which is highly relevant if you're using Firefox as your browser:
ASP.NET MVC:我该如何强制内容目录返回304s而不是200s?
这篇关于为什么2010 Cassini提供静态文件时性能会变慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!