diff --git a/lib/molecules/admin-bar/admin-bar.service.js b/lib/molecules/admin-bar/admin-bar.service.js index 9e79d63..5e977fc 100644 --- a/lib/molecules/admin-bar/admin-bar.service.js +++ b/lib/molecules/admin-bar/admin-bar.service.js @@ -25,9 +25,13 @@ function lnMAdminBarService($rootScope, $q, $http) { function getAdminBarData() { var deferred = $q.defer(); + var options = { + withCredentials: true, + cache: true, + }; $http - .get(apiUrl, { withCredentials: true }) + .get(apiUrl, options) .then(function (response) { return deferred.resolve(response); }, function (error) { @@ -36,4 +40,4 @@ function lnMAdminBarService($rootScope, $q, $http) { return deferred.promise; } -} \ No newline at end of file +}