secondsPerDay is not compatible with Dart 1.x
This commit is contained in:
parent
0b4a232f98
commit
2a3ca0bd2b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue