title: How to refresh / invalidate $resource cache in AngularJS
body: <p>I have a simple User $resource that uses the default $http cache implementation like so:</p>
  
  <pre><code>factory('User', function($resource){
      return $resource(endpoint + '/user/current/:projectId', {},
          {get: 
              {
                  cache: true,
                  method: 'GET'
              }
          }
      );
  })
  </code></pre>
  
  <p>This works very well, i.e. my server is only called once in my application, then the value is fetched from cache.</p>
  
  <p>But I need to refresh the value from the server after a certain operation. Is there an easy way to do that?</p>
  
  <p>Thanks.</p>