Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to enable caching in $http service?



How to enable caching in $http service?..

Answer / chaitanya

You can enable caching in $http service by setting configuration property cache to true. When cache is enabled, $http service stores the response from the server in local cache. In this way, next time the response will be served from the cache without sending request to server. $http.get("http://server/myserviceapi",{ cache:true }).sucess(function(){ //TO DO: });

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to implement http cache using interceptors in angular 4?

0 Answers  


What is the difference between observable and promises?

0 Answers  


How to create & call angular 2 services in components?

0 Answers  


What is different between angular 2 and angular?

0 Answers  


How are performance improvements on the core in Angular 8?

1 Answers  


What is angular and why angular?

0 Answers  


Explain routeprovider in angularjs?

0 Answers  


How will you display different images based on the status being red, amber, or green?

0 Answers  


What is singleton pattern? How does angular use it?

0 Answers  


Why $scope is used in angularjs?

0 Answers  


What is angular js i18n and l10n language translation?

0 Answers  


Explain the difference between constructor and ngoninit in angular 6?

0 Answers  


Categories