jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

angular-cache caches all Resources if not specified the 'cache: false' option in resource configuration. #213

Closed pangwa closed 8 years ago

pangwa commented 8 years ago

angular doesn't cache resources for below statement: return $resource('user/:id, {id: '@id'}, { getById: { url: 'someurl', method: 'GET' },

But angular-cache caches the getById resource after I changed $http.defaults.cache to the cache using angular-cache.

pangwa commented 8 years ago

Looks like this is as design by angular. closing it.