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

Portal javascript files (included by footer-portal-javascript) if updated doesn't change timestamp parameter

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.20 EE GA2, 6.1.30 EE GA3
    • Fix Version/s: 6.1.20 EE GA2, 6.1.30 EE GA3
    • Labels:
    • Environment:
      LIFERAY VERSION: 6.1 GA 1
      OPERATING SYSTEM: Windows7
      APPLICATION SERVER: Tomcat 7.0.x
      JAVA VIRTUAL MACHINE: Java 6
      DATABASE: MYSQL 5.1
    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1) Create a hook plugin "custom-hook"
      2) Add custom javascript to plugin; for example "/html/js/custom.js"
      3) Create a portlet plugin "custom-portlet"
      4) Into "liferay-portlet.xml" add "<footer-portal-javascript>/html/js/custom.js</footer-portal-javascript>"
      5) Deploy "custom-hook" and "custom-portlet"
      6) Add "custom-portlet" to page, the rendered page will contain something like http://localhost:8080/html/js/custom.js?browserId=other&minifierType=js&languageId=en_US&b=6110&t=1378240942466
      7) Update custom.js into "custom-hook" and re-deploy
      8) Refresh page, you'll get the old version of "custom.js", this happens because "t" parameter doesn't change and the server returns HTTP 304

        Attachments

          Activity

            People

            • Assignee:
              tibor.lipusz Tibor Lipusz
              Reporter:
              zsolt.szabo Zsolt Szabo (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 5 weeks ago

                Packages

                Version Package
                6.1.20 EE GA2
                6.1.30 EE GA3