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

Details

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

    Description

      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.

       

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes