title: The ui-router for angular seems to be cacheing the resolve. When I don't want it to
body: <p><strong>The Background:</strong></p>
  
  <p>I am using ui-router for my Angular page routing needs.  It's working great so far, however I'm running into an issue.  When I load a state and I resolve my user object.  I use restangular to make the call to the database and it returns a promise.  Everything works great.  If I then log out, and log in as another user.  Then navigate back to that same page it shows the previous user object.  </p>
  
  <p><strong>Things that I've discovered:</strong></p>
  
  <ul>
  <li>The rest api call is being made every time when the state loads, and
  it is the correct information. </li>
  <li>If I place a break point inside my controller the user object that the resolve passes is the cached
  information.</li>
  </ul>
  
  <p><strong>Theories:</strong></p>
  
  <ul>
  <li>The rest API end point is /users/me/, which is the same end point for
  every user.  We just deliver different information based off of the
  JWT token we pass. Somewhere must things since it's the same call
  don't bother delivering the goods it already got.</li>
  </ul>
  
  <p><strong>Things I've tried:</strong></p>
  
  <ul>
  <li>I've confirmed that the API call isn't cached, and it is delivering
  the correct information to angular</li>
  <li>I've tried grabbing the
  $cacheFactory of $http and .removeAll.</li>
  </ul>
  
  <p><strong>Sample code:</strong></p>
  
  <pre><code>angular.module('services.user', [ ])
    .factory('User', function(Restangular) {
      return Restangular.service('users');
    });
  
  angular.module('settings.profile', [
    'ui.router',
    'services.user'
  ])
  
  .config(function($stateProvider){
    $stateProvider
      .state('settings.profile',{
        url: '/profile',
        templateUrl: 'app/settings/profile/settings.profile.html',
        controller: 'SettingsProfileCtrl',
        authenticate: true,
        resolve: {
          user: function(User) {
            var user = User.one('me').get()
            return user;
          }
        }
      });
  })
  
  .controller('SettingsProfileCtrl',
    function($scope, $location, user, $http, apiUrl){
  
    $scope.user = user;
  }
  </code></pre>