Merge pull request #4824 from howard-stearns/cache-mod-time

Cache mod time
This commit is contained in:
Seth Alves 2015-05-11 10:38:23 -07:00
commit d86b22f7c8

View file

@ -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;