Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-84040

js_bundle_config are not minified nor gzipped

    Details

    • Fix Priority:
      4

      Description

      Reproduction steps:
      1) Patch vanilla Liferay with de-50 and add browser.launcher.url= to the portal-ext.properties file (this has no relevance for the reproduction, it just makes it easier as it will help to open the Liferay home page only when the devtools are ready to parse it). Add also this property: com.liferay.portal.servlet.filters.gzip.GZipFilter=true
      2) Start the server and wait for the successfully "Server started" message
      3) Open a Chrome incognito and press F12
      4) Click on the Network tab and hit http://localhost:8080, wait for all resources on the page to load
      5) Right click on the entry for main.js which looks similar to this: http://localhost:8080/o/classic-theme/js/main.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=1528964085464 and select "Open in a new tab"
      --> Observe how the resource is minified

      6) Go back to the Network tab and left click always on the same http://localhost:8080/o/classic-theme/js/main.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=1528964085464

      --> On the right-handed panel, under "Response headers", observe "Content-Encoding: gzip"

      7) Do the same 5) and 6) actions for:
      http://localhost:8080/o/js_bundle_config?t=1528964092372

      Expected: Same results as for http://localhost:8080/o/classic-theme/js/main.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=1528964085464
      Actual behavior: Resource is not minified and not gzipped either

       The issue is the same as in LPS-82808, just with the js_bundle_config

       Reproduced on 7.0.x-private @ 4261e497506c341ab717c0a5e3d25dfcaff52660a58301ee12bfa901ff54ab7e

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              norbert.nemeth Norbert Németh
              Reporter:
              norbert.nemeth Norbert Németh
              Participants of an Issue:
              Recent user:
              Norbert Németh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 13 weeks ago

                  Packages

                  Version Package
                  Master