Agent version support in JIRA-1547 broke CSS hashcode
-----------------------------------------------------

                 Key: TRINIDAD-1795
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1795
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.2.13-core , 1.2.14-core , 2.0.0.3-core
         Environment: All
            Reporter: Blake Sullivan
            Assignee: Blake Sullivan


The Agent Version support uses the hash code of enums as part of its hash code. 
 Since the enum hash code is based on the memory address of the enum, this 
causes the hash code on the cached css file to change every time the server is 
restarted even if the css file itself did not change.  The result is the user 
agent pull new copies of the CSS file more often than necessary.

The solution is to use the hash code of the enum's name instead, which is 
stable.

Doing so I now see the same hash code ( "d8dxpq" in the case of the rich client 
fusion skin on JSF2) across runs rather than different values("iyn8lw" and 
"idkr6t") like I did before

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to