Cache Operation in AngularJS

来源:互联网 发布:淘宝客服问题大全 编辑:程序博客网 时间:2024/05/19 01:07

http://stackoverflow.com/questions/17059569/how-to-refresh-invalidate-resource-cache-in-angularjs


var $httpDefaultCache = $cacheFactory.get('$http');

Then you can control it like any another cache made with $cacheFactory.


 call 

$cacheFactory.get('$http').remove(key)

 with key being the relative URL of your resource (ex: /api/user/current/51a9020d91799f1e9b8db12f).


0 0
原创粉丝点击