title: Invalidate $resource Cache After Post Request
body: <p>I am using $resource and caching the results of get requests. My problem is that, after post requests, the cache is not being invalidated. </p>
  
  <p>Here is the return value from the service:</p>
  
  <pre><code>return $resource('http://url.com/api/url/:id', {}, {
  'query' : {
        method : 'GET',
        isArray:true,
        cache : true
      },
  'get' : {
    method : 'GET',
    cache : false
  }  
  })
  </code></pre>
  
  <p>Here is the save method I am using inside my controller. As you can see, I'm using the callback on the post request to recalculate the query/list of nouns.</p>
  
  <pre><code>var newNoun = new Noun($scope.noun);
  newNoun.$save(function(x) {
    $scope.nouns = Noun.query();
  });
  </code></pre>
  
  <p>I would like to invalidate the cache after calling post or another non-get method. How could I do this? Is this already built into $resource or do I need to implement it on my own?</p>