AngularJs: How to cache $http properly?
问题 I've enabled cache in my $http request and now the callback for success only runs the first time. I'm wondering if this is expected or there's something I need to know about caching $http ? This is what I've been trying: $http.get('/foo/bar', { cache: true }) .success(function(data){ // does foo }) .error(function(){ // uh oh }); Let's say I've processed the data once, but there's also other commands that I'd like to run, every time. So, if it's true the data is cached or already available I