... | ... | @@ -128,11 +128,11 @@ QNetworkRequest KdePlatformDependent::addOAuthToRequest(const QNetworkRequest &r |
notConstReq.setAttribute(QNetworkRequest::Http2AllowedAttribute, true); | ||
// Add cache preference in a granular fashion (we will almost certainly want more of these, but...) | ||
static const QList<QString> preferCacheEndpoints{ | ||
static const QStringList preferCacheEndpoints{ | ||
QLatin1String{"/content/categories"} | ||
} | ||
Please
register
or
sign in
to reply
|
||
for (const QString &endpoint : preferCacheEndpoints) { | ||
if (notConstReq.url().endsWith()) { | ||
if (notConstReq.url().endsWith(endpoint)) { | ||
notConstReq.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache); | ||
break; | ||
} | ||
... | ... |