cache method

DoxResponse cache(
  1. Duration duration
)

set cache

res.cache(Duration(seconds: 10));

Implementation

DoxResponse cache(Duration duration) {
  _headers[HttpHeaders.cacheControlHeader] = 'max-age=${duration.inSeconds}';
  return this;
}