[core] Don't allow style mutations to be overwritten by revalidation

* Once we get a fresh style, stop revalidating.
* If the style is mutated, stop revalidating and preserve the existing mutations.
This commit is contained in:
John Firebaugh
2016-07-21 16:37:18 -07:00
parent 5511e9a4e8
commit 86cccc4d24
4 changed files with 148 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ public:
optional<Timestamp> modified;
optional<Timestamp> expires;
optional<std::string> etag;
bool isFresh() const {
return !expires || *expires > util::now();
}
};
class Response::Error {