[richfaces-issues] [JBoss JIRA] Commented: (RF-7452) org.ajax4jsf.DEFAULT_EXPIRE needs to override 'Pragma' header

Richard Kennard (JIRA) jira-events at lists.jboss.org
Sun Jul 26 22:09:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-7452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12477571#action_12477571 ] 

Richard Kennard commented on RF-7452:
-------------------------------------

Actually, this might be a clue...

http://mail-archives.apache.org/mod_mbox/tomcat-users/200503.mbox/%3Cd6491f48050325092747ad9985@mail.gmail.com%3E

...it appears it is Tomcat behaviour. As JBossWeb is a fork of Tomcat, this might explain why we see it in JBoss too.

Either way, it is not good for RichFaces. Could I leave it with you to liase with the JBossWeb guys to see why this is there? It definitely impacts RichFaces performance.

> org.ajax4jsf.DEFAULT_EXPIRE needs to override 'Pragma' header
> -------------------------------------------------------------
>
>                 Key: RF-7452
>                 URL: https://jira.jboss.org/jira/browse/RF-7452
>             Project: RichFaces
>          Issue Type: Bug
>          Components: browser compatibility
>    Affects Versions: 3.3.1
>            Reporter: Richard Kennard
>            Assignee: Nick Belaevski
>             Fix For: 3.3.2.CR1
>
>         Attachments: addressbook-faces.war
>
>
> The flag org.ajax4jsf.DEFAULT_EXPIRE, which defaults to 86400, is meant to set client-side expiry for static resources (see RF-2506 and RF-4212). This is a great idea but it is incorrectly implemented.
> The problem is browsers differ on what they consider as the 'expires header'. For correct operation, a combination of 'Pragma', 'Cache-Control' and 'Expires' is needed. At the moment the code is setting 'Pragma: No-cache', which means expiry does not work on Firefox. If you use Firebug, you can see all the resources are reloaded every page.
> This is what RichFaces currently sets as its headers, by default:
> Pragma: No-cache
> Cache-Control: max-age=86400
> Expires: Fri, 26 Jun 2009 22:32:50 GMT
> This is what it should set:
> Pragma:
> Cache-Control: max-age=86400
> Expires: Fri, 26 Jun 2009 22:32:50 GMT

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list