mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
changes per CR
This commit is contained in:
parent
a7fb294a1b
commit
f41ef31ef5
1 changed files with 8 additions and 8 deletions
|
@ -87,8 +87,8 @@ void ScriptCache::getScriptContents(const QString& scriptOrURL, contentAvailable
|
|||
if (_scriptCache.contains(url) && !forceDownload) {
|
||||
auto entry = _scriptCache[url];
|
||||
if (url.isLocalFile() || url.scheme().isEmpty()) {
|
||||
auto mtime = QFileInfo(url.toLocalFile()).lastModified();
|
||||
QString localTime = ResourceRequest::toHttpDateString(mtime.toMSecsSinceEpoch());
|
||||
auto modifiedTime = QFileInfo(url.toLocalFile()).lastModified();
|
||||
QString localTime = ResourceRequest::toHttpDateString(modifiedTime.toMSecsSinceEpoch());
|
||||
QString cachedTime = entry["last-modified"].toString();
|
||||
if (cachedTime != localTime) {
|
||||
forceDownload = true;
|
||||
|
|
Loading…
Reference in a new issue