Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Browser application cache
Forum Updated to NodeBB v4.3 + New Features

Browser application cache

Scheduled Pinned Locked Moved Unsolved Qt WebKit
6 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RadhaNK
    wrote on last edited by
    #1

    Hello All,
    Currently we are using lighttpd 1.4.32 version in our Application. We see that elements in the page[ images] are getting updated one after the other. Our application uses multiple images on a page, causing a sluggish performance. To improve we wanted to use browser application cache method

    1. From Qt, offlineApplicationCache is enabled and path is also set.
    2. application cache file is referred in the html. This cache file list all the URL of the images that needs to be cached.
      3)HTML page refers to this application cache in manifest attribute.
      Problem:
    3. We see that application cache status raises "progress" event, but does not raise "cached" event. Does it mean the files are not cached? No "Error" event is also raised.
    4. Everytime the page loads, it downloads all the contents listed in application cache and not from cache. We see in logs that it sends request to server to download all the image files.
    5. In our HTML, images to download is set as an background-image attribute. Will this method help to download the image files from application cache instead of server when the server is online and network connection is also good?

    Request your help,
    Thanks,

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by
      #2

      Did you try your application in other browsers?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RadhaNK
        wrote on last edited by
        #3

        No. Not yet.

        Any directions will really help
        Thanks

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Konstantin Tokarev
          wrote on last edited by
          #4

          I have no experience with AppCache, but it should work. I guess you are have an error somewhere, perhaps in cache manifest

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RadhaNK
            wrote on last edited by
            #5

            Me either . Is any other method where images can be cached ? We have lot of images on page which is giving performance issue

            Few questions:

            1. We have autoloadimage set. Is it possible to intercept the http response and store them locally?
            2. What are the other techniques in qt that can help ?

            Thanks,
            Radha

            K 1 Reply Last reply
            0
            • R RadhaNK

              Me either . Is any other method where images can be cached ? We have lot of images on page which is giving performance issue

              Few questions:

              1. We have autoloadimage set. Is it possible to intercept the http response and store them locally?
              2. What are the other techniques in qt that can help ?

              Thanks,
              Radha

              K Offline
              K Offline
              Konstantin Tokarev
              wrote on last edited by
              #6

              Is it possible to intercept the http response and store them locally?

              You can replace QNetworkAccessManager instance of QWebPage with object of your own subclass and intercept any requests

              What are the other techniques in qt that can help ?

              You can use standard HTTP caching, e.g. via installing QNetworkDiskCache on QNetworkAccessManager instance of QWebPage. Behavior of cache is controlled by HTTP headers

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved