We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daef71b commit 4ac4b2eCopy full SHA for 4ac4b2e
lib/core_dom/http.dart
@@ -415,7 +415,8 @@ class Http {
415
* - xsrfHeaderName: TBI
416
* - xsrfCookieName: TBI
417
* - interceptors: Either a [HttpInterceptor] or a [HttpInterceptors]
418
- * - cache: Boolean or [Cache]. If true, the default cache will be used.
+ * - cache: Boolean or [Cache]. If true, the default cache will be used. If false, no cache will
419
+ * be used. If object of type [Cache] is provided, that object will be used as cache.
420
* - timeout: deprecated
421
*/
422
async.Future<HttpResponse> call({
@@ -468,7 +469,7 @@ class Http {
468
469
470
if (cache == false) {
471
cache = null;
- } else if (cache == null) {
472
+ } else if (cache == true) {
473
cache = defaults.cache;
474
}
475
0 commit comments