Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1889

Compressed CSS/JavaScript are now cached

Details

    Description

      Inline CSS and JavaScript are compressed by StripFilter to reduce the size of the page sent to the browser. These compressed CSS and JavaScripts are now cached so that they do not need to be re-compressed on every request.

      The number of cached CSS/JavaScript content can controlled using the following property in portal(-ext).properties:

      #

      1. The strip filter will attempt to cache inline minified CSS and JavaScript
      2. content. Set this property configure the maximum pieces of cached content.
      3. Set this property to disable caching of inline minified content.
        #
        minifier.inline.content.cache.size=10000

      For 5.2 EE, properties also exist to selectively control what content is cached:

      #

      1. Input a list of comma delimited values that will cause the minified CSS to
      2. not be cached if those values are contained in the content.
        #
        minifier.inline.content.cache.skip.css=

      #

      1. Input a list of comma delimited values that will cause the minified
      2. JavaScript to not be cached if those values are contained in the content.
        #
        minifier.inline.content.cache.skip.javascript=getSessionId,encryptedUserId

      Attachments

        Issue Links

          Activity

            People

              john.jiang John Wayne Jiang (Inactive)
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP5 (5.1.8)
                  5.2 EE SP4 (5.2.8)