Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

documentation for $httpProvider.defaults.cache #10134

Closed
bsr203 opened this issue Nov 19, 2014 · 1 comment
Closed

documentation for $httpProvider.defaults.cache #10134

bsr203 opened this issue Nov 19, 2014 · 1 comment

Comments

@bsr203
Copy link

bsr203 commented Nov 19, 2014

Is there a settings for cache through $httpProvider?

I do not see any mentioning of cache in the defaults section of the doc

doc for $http say I can set $http.defaults.cache, which it says Runtime equivalent of the $httpProvider.defaults property. so, need to mention cache property in $httpProvider defaults section. I want to make sure following is valid
$httpProvider.defaults.cache = true;

ps: This issue was wrongly created under 2.x repo.
angular/angular#219

@petebacondarwin petebacondarwin self-assigned this Nov 20, 2014
@petebacondarwin
Copy link
Contributor

There is some documentation here: https://docs.angularjs.org/api/ng/service/$http#caching
In there it states:

You can change the default cache to a new object (built with $cacheFactory) by updating the $http.defaults.cache property. All requests who set their cache property to true will now use this cache object.

We should probably add this property to the $httpProvider docs as you suggest

@Narretz Narretz added this to the Backlog milestone Nov 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants