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

CSS timestamp value is not updating after deploying an updated theme

    Details

      Description

      Issue
      If we have a theme, and deploy an update to that theme the CSS is not being updated as the timestamp used in the resource URL is incorrect. The expectation is that the t= timestamp value should update, which should cause the browser to load a new version of the theme's main.css.

       

      Steps to Reproduce

      1. Startup a clean Liferay 7.2 environment with fix pack DXP-1 (to ensure we're on the latest codebase)
      2. Sign in as [email protected]
      3. Deploy portal-theme.war (grab the first version from extract-and-deploy-first.zip) and wait for the deployment to complete
      4. Change the Welcome Page's theme to use portal-theme, then refresh the page itself, and check the main.css URL in the browser console: for /o/portal-theme/css/main.css
      5. Make note of the timestamp portion as it will be used later.
      6. Wait a few minutes, and deploy portal-theme.war (use the updated one in extract-and-deploy-later.zip) and wait for the deployment to complete
      7. Refresh the page, and check the main.css URL in the browser console: for /o/portal-theme/css/main.css

      Actual Behavior
      Assert that the timestamp portion of the URL is the exact same value as the one from portal-theme (1.0.3)

      Expected Behavior
      portal-theme should have an updated timestamp since we waited a few minutes to deploy the updated theme (1.0.4).

      Reproduced in
      7.2 + DXP-1
      Master private Commit: 134a7024145d7b051239869fce69b2a46d4c2fb0
      7.2.x private Commit: 56bc208f4561e5a0319db6d9633967cfaf3dd416

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            il.kim Brian I. Kim
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 50 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP94
                7.0.10.15 DXP SP15
                7.0.X
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.1 CE GA2
                7.2.X
                7.3.10 DXP GA1
                Master