bool response::is_cacheable() const { return state == BODYFULL && checkCacheControl() && get_header("ETag") != "" && get_header("Vary") == "" && get_code() == "200"; }
bool http_response::is_cacheable() const { return (state == FULL_BODY && checkCacheControl() && get_header("ETag") != "" && get_header("Vary") == "" && get_code() == "200"); }