diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp index 676bc64fee..23249b2765 100644 --- a/rbutil/rbutilqt/base/httpget.cpp +++ b/rbutil/rbutilqt/base/httpget.cpp @@ -258,12 +258,13 @@ void HttpGet::getFileFinish() return; } else { - if(cachefile.isReadable()) - qDebug() << "[HTTP] Cache: outdated, timestamp:" << cachefile.lastModified(); - qDebug() << "[HTTP] Cache: caching as" << m_cachefile; // unlink old cache file - if(cachefile.isReadable()) + if(cachefile.isReadable()) { QFile(m_cachefile).remove(); + qDebug() << "[HTTP] Cache: outdated, timestamp:" + << cachefile.lastModified(); + } + qDebug() << "[HTTP] Cache: caching as" << m_cachefile; } }