Oliver Becker created MYFACES-3847:
--------------------------------------

             Summary: HtmlStylesheetRenderer doesn't ignore additional link 
parameters when checking for the resource
                 Key: MYFACES-3847
                 URL: https://issues.apache.org/jira/browse/MYFACES-3847
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.2.0
            Reporter: Oliver Becker


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

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

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

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

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



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to