Visual Studio 2013缓存旧版本的.js文件 [英] Visual Studio 2013 caching older version of .js file

查看:61
本文介绍了Visual Studio 2013缓存旧版本的.js文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Visual Studio 2013 Ultimate中的一个小型web api项目。 Windows 2013. Internet Explorer 9.当我使用内部Web服务器从VS运行(调试)时(我猜这是IIS Express,现在),我发现我正在进行(并保存)到javascript页面的更改正在进行忽略。在javascript中放置断点会显示较旧的代码而不进行更改。

I am working on a small web api project in Visual Studio 2013 Ultimate. Windows 2013. Internet Explorer 9. When I run (debug) from VS using the internal web server (I guess that is IIS Express, now), I am finding that the changes I am making (and saving) to a javascript page are being ignored. Placing a breakpoint in the javascript shows the older code without my changes.

CTRL + F5不会强制应用程序使用当前更新的页面。检查页面,然后检查它通常有效。是否有一些设置或技巧可以帮助我在这里?

CTRL+F5 does not force the application to use the currently updated page. Checking the page in, then checking it back out often works. Is there some setting or trick that will help me out here?

推荐答案

清除缓存历史似乎有点过分我不喜欢我想一直这样做。

Clearing the cache history seemed a bit excessive and I don't want to do that all the time.

以下解决方案让我在Internet Explorer中工作:
首先启用脚本调试:

The following solution worked me in Internet Explorer: First enable script debugging:


  1. 工具菜单 - >选择Internet选项

  2. 提前选项卡取消选中禁用脚本调试(Internet Explorer)

然后确保您获得最新页面:

Then make sure you get the newest page:


  1. 来自工具菜单选择Internet选项。

  2. 在常规选项卡上的浏览历史记录下,单击设置。

  3. 在检查存储页面的较新版本下,确保选中每次访问网页时。

  4. 单击确定按钮。

  1. From the Tools menu choose Internet Options.
  2. On the General tab, under Browsing history, click Settings.
  3. Under "Check for newer versions of stored pages" make sure "Every time I visit the webpage" is selected.
  4. Click the OK button.

这篇关于Visual Studio 2013缓存旧版本的.js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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