Question: To add caching inside http is pretty straight forward. ( by passing cache=true )

[http://docs.angularjs.org/api/ng.$http](https://docs.angularjs.org/api/ng/service/$http) has Cache option.

How do I add similar functionality in $resource in angularjs ?

Answer: 
Since 1.1.2 ([commit](https://github.com/angular/angular.js/commit/af89daf4641f57b92be6c1f3635f5a3237f20c71)), all the $httpConfig options are directly exposed in $resource action objects:

```
return {
  Things: $resource('url/to/:thing', {}, {
    list : {
      method : 'GET',
      cache : true
    }
  })
 };

```
This doesn't seem to be mentioned here but you can also overwrite the default methods.

```
app.factory("List", ["$resource", function($resource) {
    return $resource("./lists/:path/:action.json", {}, {
        get: {
            method: "GET",
            cache: true
        }
    });
}]);

```