isValidResponse method
Function used to validate whether a given response is valid for being saved in a WebCacheDocument.
Should return true if the Response
is valid for being saved, otherwise false.
Implementation
bool isValidResponse(Response response) => response.statusCode >= 200 && response.statusCode < 300;