you could probably use the cache option of $http.get to implement the log lines caching. But it looks like your implementation works as well :smiley: . See https://docs.angularjs.org/api/ng/service/$http#caching for details