From 637d3b47d191eb9353531abfdc9f5460e0eff5ba Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 20 Nov 2014 21:25:28 +0000 Subject: [PATCH] docs($httpProvider): add info about `defaults.cache` Closes #10134 --- src/ng/http.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ng/http.js b/src/ng/http.js index 57afa3dd..6a446d6b 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -116,6 +116,11 @@ function $HttpProvider() { * * Object containing default values for all {@link ng.$http $http} requests. * + * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`} + * that will provide the cache for all requests who set their `cache` property to `true`. + * If you set the `default.cache = false` then only requests that specify their own custom + * cache object will be cached. See {@link $http#caching $http Caching} for more information. + * * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token. * Defaults value is `'XSRF-TOKEN'`. * @@ -129,6 +134,7 @@ function $HttpProvider() { * - **`defaults.headers.post`** * - **`defaults.headers.put`** * - **`defaults.headers.patch`** + * **/ var defaults = this.defaults = { // transform incoming response data