secondsPerDay is not compatible with Dart 1.x

This commit is contained in:
Tobe O 2018-04-02 11:25:28 -04:00
parent 0b4a232f98
commit 2a3ca0bd2b

View file

@ -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) {