angular 的更改包括不在 chrome 生效

Changes on angular include not taking effect on chrome

我在我的页面上使用 angular ng-include。每次我对包含的 .html 进行更改时,更改不会在 chrome 和 Opera 上生效,但会在 Firefox 上生效。我正在使用 XAMPP 到 运行 我的页面。有什么想法吗?

这可能是因为angular的$templateCache

一个快速的解决方案是刷新浏览器的缓存,或者在 Chrome 开发工具中点击右下角的齿轮并勾选选项 Disable cache (while DevTools is open)