Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3847

HtmlStylesheetRenderer doesn't ignore additional link parameters when checking for the resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.0.21, 2.1.15, 2.2.1
    • None
    • None

    Description

      To prevent browser caching issues with static resources we appended a special query parameter to both css and js resource links:

      <h:outputStylesheet name="css/screen.css?#

      {startup.time}" />
      <h:outputScript name="js/script.js?#{startup.time}

      " />

      This works for outputScript, but it does not work for outputStylesheet. Instead I get the log message

      WARNING: Resource referenced by resourceName css/screen.css?1390483892421 not found in call to ResourceHandler.createResource. It will be silenty ignored.

      The class HtmlScriptRenderer takes care of additional query params (line 217). However, this logic is missing in HtmlStylesheetRenderer.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              obecker Oliver Becker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: