我正在使用angular-cache。
angularApp.service('MyCache', function (CacheFactory) {
this.getCacheObject = function () {
var mycache = CacheFactory('MyCacheObj', {
maxAge:20 * 60 * 1000, cacheFlushInterval:20 * 60 * 1000, deleteOnExpire: 'aggressive'
});
return mycache;
}});缓存在chrome中工作正常,但在IE和边缘浏览器中不能正常工作。每次我从一个页面移动到另一个页面(不刷新)时,页面中的$http调用被缓存在chrome浏览器中,而不是缓存在IE和EDGE中。
发布于 2016-05-10 19:50:03
我注意到你必须设置Cache-Control和If-Modified-Since头才能让IE缓存正常工作。
https://stackoverflow.com/questions/34790776
复制相似问题