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

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

问题描述

我正在 Visual Studio 2013 Ultimate 中开发一个小型 web api 项目.Windows 2013.Internet Explorer 9.当我使用内部 Web 服务器(我猜现在是 IIS Express)从 VS 运行(调试)时,我发现我正在对 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. 单击确定"按钮.

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

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