From aed165809c8b1a2a85e8e4029410183f26b5a3e1 Mon Sep 17 00:00:00 2001 From: Howard Stearns Date: Mon, 11 May 2015 10:01:49 -0700 Subject: [PATCH] Use resource cache as long as it is no older than network resource. This allows chache to be used when cdn provides different values for get-vs-head, or for cdn with different resource times in different requests of different sessions. --- libraries/networking/src/ResourceCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/ResourceCache.cpp b/libraries/networking/src/ResourceCache.cpp index c66ae4ce1d..c182b9c1d8 100644 --- a/libraries/networking/src/ResourceCache.cpp +++ b/libraries/networking/src/ResourceCache.cpp @@ -350,7 +350,7 @@ void Resource::maybeRefresh() { QDateTime lastModified = variant.value(); QDateTime lastModifiedOld = metaData.lastModified(); if (lastModified.isValid() && lastModifiedOld.isValid() && - lastModifiedOld == lastModified) { + lastModifiedOld >= lastModified) { qCDebug(networking) << "Using cached version of" << _url.fileName(); // We don't need to update, return return;