Running sites on “localhost” is extremely slow

后端 未结 18 1636
终归单人心
终归单人心 2020-12-12 22:06

Having real trouble using my localhost to test sites. It runs extremely slowly! Sometimes it takes up to a minute to load a page. I\'m using Firefox and the sites I\'m testi

18条回答
  •  粉色の甜心
    2020-12-12 22:18

    I know the op was using an older version of IIS and this may not apply to him, but I'm posting this as it might help others. I had the same problem and none of the above IPv6 or hosts file changes worked for me. My asp.net MVC4 project was really slow after hitting F5 to refresh js changes on localhost. It was happening across all browsers - Chrome, FF, and IE. Eventually I realised I was running IIS Express 8.0 locally, and it turns out 8.0 is extremely slow when serving up js files and seems to be a bug. If I ran iisexpress on the command line and hit F5 I could see each js file took 4 or 5 seconds to load.

    I ended up uninstalling IIS 8.0 and installing IIS express 7.5 and straight away the problem was fixed. Here are the steps I followed:

    • Uninstall IIS express 8.0
    • Delete the IISExpress folder (on Win 7 it's in My Documents\IISExpress)
    • Install IIS express 7.5 (Link to IIS Express 7.5 download)

    IIS Express 8.0 seems to be installed with VS 2012 so if you had a new install or possibly a service pack update this might upgrade the previous IIS Express version.

提交回复
热议问题