[core] update the modified/expires debug info for unmodified responses as well
This commit is contained in:
@@ -40,6 +40,9 @@ void RasterTileData::request(const std::string& url,
|
||||
return;
|
||||
}
|
||||
|
||||
modified = res.modified;
|
||||
expires = res.expires;
|
||||
|
||||
if (res.notModified) {
|
||||
// We got the same data again. Abort early.
|
||||
return;
|
||||
@@ -50,9 +53,6 @@ void RasterTileData::request(const std::string& url,
|
||||
state = State::loaded;
|
||||
}
|
||||
|
||||
modified = res.modified;
|
||||
expires = res.expires;
|
||||
|
||||
workRequest.reset();
|
||||
workRequest = worker.parseRasterTile(std::make_unique<RasterBucket>(texturePool), res.data, [this, callback] (RasterTileParseResult result) {
|
||||
workRequest.reset();
|
||||
|
||||
Reference in New Issue
Block a user