[core] Do not consider error'ed responses fresh
It has the unwanted side effect of not retrying anymore in case of error.
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
2c7350c093
commit
e6659242bc
@@ -35,7 +35,7 @@ public:
|
||||
optional<std::string> etag;
|
||||
|
||||
bool isFresh() const {
|
||||
return !expires || *expires > util::now();
|
||||
return expires ? *expires > util::now() : !error;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user