You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2014/02/20 00:54:21 UTC

[jira] [Resolved] (MYFACES-3847) HtmlStylesheetRenderer doesn't ignore additional link parameters when checking for the resource

     [ https://issues.apache.org/jira/browse/MYFACES-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3847.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.1
                   2.1.15
                   2.0.21
         Assignee: Leonardo Uribe

> 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
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.21, 2.1.15, 2.2.1
>
>
> 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.



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