Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.5.1
-
None
Description
When the expirationDate on a url cache expire, on the subsequent request, the QNetworkRequest::SourceIsFromCacheAttribute is set to true, even if the cache was expired and a network call was required.
How to reproduce:
1) Create a http request and set the expirationDate to be a specific time (ie: 20seconds).
2) Wait until the 20seconds pass and try to make the same request (with the same url)
Expected result:
- The QNetworkRequest::SourceIsFromCacheAttribute should be set to false, since the data came from the network (and not from the cache)
Actual result:
- The QNetworkRequest::SourceIsFromCacheAttribute is set to true.