To add caching inside http is pretty straight forward. ( by passing cache=true )
http://docs.angularjs.org/api/ng.$http has Cache option.
How do I add similar functionality in $resource in angularjs ?
Since 1.1.2 (commit), all the $httpConfig options are directly exposed in $resource action objects:
return { Things: $resource('url/to/:thing', {}, { list : { method : 'GET', cache : true } }) };
2.1m questions
2.1m answers
60 comments
56.9k users