IIS Express 过度缓存经典 ASP 页面 [英] IIS Express overly caching classic ASP pages

查看:24
本文介绍了IIS Express 过度缓存经典 ASP 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个随机发生的问题,即当我对 ASP 页面进行更改时 IIS Express 无法识别.它会提供页面的先前版本.

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 can work around this problem by re-editing the page, making a small change, then undoing the change and re-saving the file. But that's annoying...

到目前为止,我只看到经典 ASP 页面会发生这种情况,而不是我项目中的其他文件(html、js、css...).我知道 IIS 缓存 ASP 页面并在文件更新时更新缓存,所以一定有什么东西阻止了 IIS 识别这些文件何时更改.我只是不知道那会是什么.

So far I've only seen this happen with Classic ASP pages, not the other files (html, js, css...) in my project. I know that IIS caches ASP pages and updates the cache when the file is updated, so something must be preventing IIS from recognizing when these files change. I just don't know what that could be.

如果我在 Windows 7 上使用 Visual Studio 2013、IIS Express 7.1.1557,这很重要.

In case it matters I'm using Visual Studio 2013, IIS Express 7.1.1557 on Windows 7.

我的 web.config:

My web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.5" />
        <customErrors mode="Off" />
    </system.web>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
    </system.webServer>
</configuration>

推荐答案

自从将 IIS Express 从版本 7 升级到 10 (在这里下载).

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

查看此处了解如何检测您的 IIS Express 版本.

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

这篇关于IIS Express 过度缓存经典 ASP 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆