IIS Express overly caching classic ASP pages

后端 未结 3 436
别跟我提以往
别跟我提以往 2021-01-24 15:03

I have this randomly occurring problem where IIS Express does not recognize when I make a change to an ASP page. It serves up the previous version of the page instead.

I

3条回答
  •  一个人的身影
    2021-01-24 15:54

    I have the exact same behavior. So far, this seems to have fixed it:

    In the applicationhost.config of IISExpress (%userprofile%\My Documents\IISExpress\config), under , I had a caching disabled, but not kernel caching. Here is what I have now:

    
    
    

    So far, it seems to do the trick. I hope it will help you out as well.

    It seems to have a small negative impact on performance, but in my case it is worth it.

    EDIT

    After using it for some time, I started getting the cached pages served again. Then I tried closing VS, make sure IISExpress was stopped, open VS again, and start the website without debugging (Ctrl+F5), and so far no caching issues.

    One difference though... My version of IISExpress.exe is 8.0.8418.0 (and Visual Studio is 12.0.21005.1 REL). I hope this helps you, Keith, as I know how annoying this bug is. Good luck.

提交回复
热议问题