Replaced $http with $resource. Caching enabled for Detail view.
Cache enabled for main view