mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +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 lastModifiedOld = metaData.lastModified();
|
||||
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();
|
||||
// We don't need to update, return
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue