Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-20-2017, 04:52 AM   #1
beingchinmay
Registered User
 
Join Date: Jun 2015
Posts: 246
Arrow How to enable caching in $http service?

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.


Code:
$http.get("http://server/myserviceapi",{ cache:true **).sucess(function(){ //TO DO: **);



Fat Cutter | Hot Shaper | Asthijivak
beingchinmay is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Girls In Dwarka, № ⑼⑥➎➃⒐③⒏⑹➏➄ Ἒṩḉṑṛṫṧ Service In Dwarka, 00000010samarkhan Google Search Engine and AdWords 0 05-08-2015 09:22 AM
Call Girls In Akshardham, № ⑼⑥➎➃⒐③⒏⑹➏➄ Ἒṩḉṑṛṫṧ Service In Akshardham, 00000010samarkhan Google Search Engine and AdWords 0 05-08-2015 08:54 AM
Call Girls In Anand Vihar, № ⑼⑥➎➃⒐③⒏⑹➏➄ Ἒṩḉṑṛṫṧ Service In Anand Vihar, 00000010samarkhan Google Search Engine and AdWords 0 05-08-2015 08:48 AM
Female Call Girls In Greater Noida, № ⑼⑥➎➃⒐③⒏⑹➏➄ Ἒṩḉṑṛṫṧ Service In Greater Noida, 00000010samarkhan Google Search Engine and AdWords 0 05-08-2015 08:35 AM
Call Girls In New Ashok Nagar, № ⑼⑥➎➃⒐③⒏⑹➏➄ Ἒṩḉṑṛṫṧ Service In New Ashok Nagar, 00000010samarkhan Google Search Engine and AdWords 0 05-08-2015 08:25 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 07:35 AM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.