Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81318

QNetworkRequest::CacheLoadControlAttribute PreferNetwork still loads from cache even if resource was modified on server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.6
    • Network: Cache
    • None
    • Windows

      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:

      1. Download some resource. It will be cached.
      2. Change resource on server.
      3. 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.

       

       

       

        For Gerrit Dashboard: QTBUG-81318
        # Subject Branch Project Status CR V

            manordheim Mårten Nordheim
            alervd Alexander Dyagilev
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes