cache method
set cache
res.cache(Duration(seconds: 10));
Implementation
DoxResponse cache(Duration duration) {
return header(
HttpHeaders.cacheControlHeader,
'max-age=${duration.inSeconds}',
);
}
set cache
res.cache(Duration(seconds: 10));
DoxResponse cache(Duration duration) {
return header(
HttpHeaders.cacheControlHeader,
'max-age=${duration.inSeconds}',
);
}