From 2a3ca0bd2b506ab8afecb1ef313587d04fc934e2 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Mon, 2 Apr 2018 11:25:28 -0400 Subject: [PATCH] secondsPerDay is not compatible with Dart 1.x --- lib/src/cache.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cache.dart b/lib/src/cache.dart index fdd2813f..268cf0ea 100644 --- a/lib/src/cache.dart +++ b/lib/src/cache.dart @@ -143,7 +143,7 @@ class ResponseCache { var privacy = 'public'; res.headers - ..['cache-control'] = '$privacy, max-age=${timeout?.inSeconds ?? Duration.secondsPerDay}' + ..['cache-control'] = '$privacy, max-age=${timeout?.inSeconds ?? 86400}' ..['last-modified'] = formatDateForHttp(modified); if (timeout != null) {