Are there scenarios where an angular service will cache Restangular/$http calls without being explicitly told to do so? For example I have a service doing something like this:
function getSomeThings(){
return Restangular.one('things').get().then(function (thing) {
return thing;
});
}
This service gets called every time a page refreshes (it's in the UI-router route resolve). Is there any chance that this call WON'T be made every time, but will be cached by Angular somehow, without explicitly being told to do so?
I am familiar with caching explicitly like so:
RestangularProvider.setDefaultHttpFields({cache: true});
This is NOT the intent. My question is whether angular services have some innate caching logic, and if so, how to override it.