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