-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.6
-
None
We use Nginx server to download our files from. It supports all those cache control headers (etag, last-modified, if-modified-since, etc.)
We use QNetworkDiskCache.
For QNetworkRequest, we use this (just to make sure):
request.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork);
Steps to reproduce bug:
- Download some resource. It will be cached.
- Change resource on server.
- Try to download it again. Bug: Qt does not even try to make any request to server to check if the resource is modified or not. It just uses cache as if PreferCache was specified.
- relates to
-
QTBUG-136811 QNetworkRequest::CacheLoadControlAttribute PreferNetwork does not do network request
-
- Reported
-