【发布时间】:2017-02-08 05:51:56
【问题描述】:
在 Angularjs 中,我为项目制作了许多 html 页面。但是在一个浏览器中,html 页面来自缓存,因此我无法在该浏览器中获得新的更改(进行刷新和硬刷新)。
在硬刷新页面后有时我会在 html 中得到新的更改,而有时我没有得到它。
请给我一些解决方案。
我的缓存示例:-
mainApp.run(['$rootScope','$cacheFactory', function($rootScope,$cacheFactory) {
$cacheFactory.get('$http').removeAll()
.....
....
}
【问题讨论】:
标签: html angularjs browser-cache