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

Commit 637d3b4

Browse files
docs($httpProvider): add info about defaults.cache
Closes #10134
1 parent 8ac369e commit 637d3b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ng/http.js

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ function $HttpProvider() {
116116
*
117117
* Object containing default values for all {@link ng.$http $http} requests.
118118
*
119+
* - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}
120+
* that will provide the cache for all requests who set their `cache` property to `true`.
121+
* If you set the `default.cache = false` then only requests that specify their own custom
122+
* cache object will be cached. See {@link $http#caching $http Caching} for more information.
123+
*
119124
* - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.
120125
* Defaults value is `'XSRF-TOKEN'`.
121126
*
@@ -129,6 +134,7 @@ function $HttpProvider() {
129134
* - **`defaults.headers.post`**
130135
* - **`defaults.headers.put`**
131136
* - **`defaults.headers.patch`**
137+
*
132138
**/
133139
var defaults = this.defaults = {
134140
// transform incoming response data

0 commit comments

Comments
 (0)