Studio开发服务器没有更新CSS和JavaScript

Studio开发服务器没有更新CSS和JavaScript

本文介绍了Visual Studio开发服务器没有更新CSS和JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近回到了一个网站项目已经在次要地位。由于recommencing的工作,我已经注意到CSS和JavaScript的更改不会被当它在Visual Studio开发服务器运行的应用程序的认可。这previously工作的罚款。我可以改变样式表和javascript和运行应用程序和测试。现在我可以测试该应用程序的唯一方法是将其发布到我的本地IIS服务器(虽然我相信重新启动我的电脑也可以解决问题)。

I've recently returned to a web site project that has been on the backburner. Since recommencing work I've noticed css and javascript changes aren't being recognised by the application when it's running in Visual Studio Development Server. This previously worked fine. I could change stylesheets and javascript and run the app and test. Now the only way I can test the application is to publish it to my local IIS server (though I believe restarting my pc also fixes the problem).

使用Visual Studio 2008(9.0.30729.1)

Using Visual Studio 2008 (9.0.30729.1)

这已经改变,因为我敢肯定这是正常工作的一件事情是操作系统从Vista家庭64 premium版赢得7 64位旗舰版和我搬到从C项目源:为D :.虽然我搬回到C:具有相同结果为阴性。我也提出了一些功能出单独的WCF服务,其中被放入调试控制台应用程序(两个服务主机)主办,当网站在调试启动。

The things that have changed since I am certain it was working correctly is the operating system, from Vista x64 Home Premium Edition to Win 7 x64 Ultimate and I've moved the project source from c: to d:. Though I moved back to C: with the same negative results. I've also moved some functionality out in seperate WCF services, hosted by console apps (two service hosts) which are put into debug when the web site starts up in debug.

停止开发服务器什么都不做。
签出(使用2005 VSS)的所有文件,以确保没有任何只读什么都不做。
唯一可行的事情是发布到IIS或重新启动我的机器。这两种不可取的​​。
我甚至会得到满足,如果有一个过程,我需要每次我停止调试终止,保证不使用的东西previous副本。

Stopping the dev server does nothing.Checking out (using VSS 2005) ALL the files to ensure nothing is read only does nothing.The only thing that works is publishing to IIS or restarting my machine. Both undesirable.I'll even be satisfied if there's a process I need to terminate each time I stop debugging, to ensure not using previous copies of things.

任何解决方案?

推荐答案

服务器可能会发送标题来引起它利用高速缓存的副本,以保持浏览器。请清空浏览器缓存。

The server may be sending headers to the browser that cause it to keep using cached copies. Try emptying your browser cache.

如果能解决它,你需要研究从服务器获取的HTTP头。然后,如果你想使用这些缓存设置(好速度),以保持或改变他们(良好的发展)决定。

If that fixes it, you need to study the HTTP headers you get from the server. Then decide if you want to keep using these caching settings (good for speed) or change them (good for development).

这篇关于Visual Studio开发服务器没有更新CSS和JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 18:28