简体   繁体   English

为什么浏览器不反映JSP页面或Angular Controller中所做的更改?

[英]Why Browser does not reflect changes made in JSP page or Angular Controller?

I am working on Spring MVC framework with Eclipse and Angular JS for FrontEnd Data Binding, I use Tomcat Server for Running the Project. 我正在使用Eclipse的MVC框架和用于FrontEnd数据绑定的Angular JS ,我使用Tomcat Server来运行项目。

Project is running Properly, but when i open any JSP or JavaScript file to make changes and made the Changes then i refresh the browser the changes are not getting reflected on browser 项目运行正常,但是当我打开任何JSP或JavaScript文件进行更改并进行更改然后我刷新浏览器时,更改不会反映在浏览器上

I opened the file with Eclipse Default Editor as well as Sublime Text 我用Eclipse Default Editor和Sublime Text打开了文件

Sometimes changes are getting reflected only after clearing browser cache, and sometimes after restarting tomcat server. 有时,只有在清除浏览器缓存后才会反映更改,有时在重新启动tomcat服务器之后。 Sometimes i do both of these. 有时我会做这两件事。

I have also tried chrome cache killer plugin and chrome dev tools -> disable cache and incognito window 我还尝试过chrome cache killer插件和chrome dev工具 - >禁用缓存和隐身窗口

Sometimes situation comes like even after restarting server and clearing browser cache code changes not reflecting on browser. 有时甚至在重新启动服务器并清除浏览器缓存中没有反映的浏

It makes development process much slower. 它使开发过程慢得多。 please suggest something which can solve this issue and can make development faster. 请提出可以解决此问题的建议,并使开发更快。

尝试每次重建应用程序,然后按Ctrl + f5进行硬刷新。

When i changed the code in file which is opened in Sublime Text then its not reflecting in browser 当我更改在Sublime Text中打开的文件中的代码时,它在浏览器中没有反映出来

After changing the file i have refreshed the eclipse project and cleaned browser cache and it started working. 更改文件后,我刷新了eclipse项目并清理了浏览器缓存,它开始工作。

I am not 100% sure but its working for me 我不是100%肯定,但它为我工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM