mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:57:29 +02:00
Merge pull request #4824 from howard-stearns/cache-mod-time
Cache mod time
This commit is contained in:
commit
d86b22f7c8
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ void Resource::maybeRefresh() {
|
||||||
QDateTime lastModified = variant.value<QDateTime>();
|
QDateTime lastModified = variant.value<QDateTime>();
|
||||||
QDateTime lastModifiedOld = metaData.lastModified();
|
QDateTime lastModifiedOld = metaData.lastModified();
|
||||||
if (lastModified.isValid() && lastModifiedOld.isValid() &&
|
if (lastModified.isValid() && lastModifiedOld.isValid() &&
|
||||||
lastModifiedOld == lastModified) {
|
lastModifiedOld >= lastModified) { // With >=, cache won't thrash in eventually-consistent cdn.
|
||||||
qCDebug(networking) << "Using cached version of" << _url.fileName();
|
qCDebug(networking) << "Using cached version of" << _url.fileName();
|
||||||
// We don't need to update, return
|
// We don't need to update, return
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue