IIS Express overly caching classic ASP pages

后端 未结 3 422
别跟我提以往
别跟我提以往 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:40

    I have not experienced this problem since upgrading IIS Express from version 7 to 10 (download here).

    See here for how to detect your version of IIS Express.

    0 讨论(0)
  • 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 <system.webServer>, I had a caching disabled, but not kernel caching. Here is what I have now:

    <caching enabled="false" enableKernelCache="false">
    </caching>
    

    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.

    0 讨论(0)
  • 2021-01-24 16:01

    Not only do you have to set this setting:

    <caching enabled="false" enableKernelCache="false"></caching>
    

    as Robert wrote, but the one below, too:

    <section name="caching" overrideModeDefault="Deny" />
    

    to keep caching off at all times.

    0 讨论(0)
提交回复
热议问题