Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236922

Ensure that unzipped index files are transferred only if necessary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • 15
    • 15
    • tools

    Description

      It looks like the unzipped index files (module-search-index.js, package-search-index.js, type-search-index.js, member-search-index.js and tag-search-index.js) are loaded by the browser along with their zipped versions. If this is true, then it is a double whammy and defeats the purpose of the mechanism. This should be investigated (my suspicion is that there's a race).

      The proposal is as follows. We should first try to load the zipped versions. If this fails, fall back to the unzipped versions. Ideally, the zipped version should be loaded without using HTTP compression (read "Accept-Encoding: gzip, deflate"), while the unzipped version should be *attempted* (an HTTP server is not obliged to use any compression) to load using HTTP compression.

      This way, neither the server nor the client would experience any unnecessary strain in the best case scenario and the transfer size will be optimal. However, the client will have to unzip the stream in any case.

      Attachments

        Issue Links

          Activity

            People

              prappo Pavel Rappo
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: