This is really more of a question. I am using several http requests in my application that spans an entire site really.
- Is it better to cache the request or is there a more efficient manner to only make the request on given URL's?
- Am I understanding the cache method correctly (see below code)
homeApp.controller('mainMenu', function($scope, $http) {
$http.get("http://localhost:3000/wp-json/menus/2", {
cache: true
}).then(function(response) {
$scope.menuData.data = response.data.items;
});
});
I am trying to keep this thing as quick and agile as possible. Thanks all!