在 Visual Studio 2010 中,"Start debugging"选项始终自动将日期时间字符串追加到 URL



假设我想使用 F5 "开始调试"选项打开页面 foo.htm。 是否有一些可以添加到VS的宏可以打开页面并始终自动将任意参数附加到查询字符串:

              foo.htm?bar=Date().getTime().toString()

在VS中打开时,任何html页面都会发生这种情况。

或者,是否有一个设置告诉 VS,"始终从磁盘读取 html 页面 - 从未使用缓存版本"。

html 页面的行下方附加。这将确保您始终从磁盘读取 html 页面。

<head>
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
</head>

最新更新