[
https://jira.jboss.org/jira/browse/RF-7452?page=com.atlassian.jira.plugin...
]
Nick Belaevski resolved RF-7452.
--------------------------------
Resolution: Cannot Reproduce Bug
Richard,
I cannot reproduce the issue, "Pragma" header is not present in response and
resources are cached ok.
Can you please post code for
com.kennardconsulting.core.servlet.http.HttpResponseHeadersFilter or describe what it
exactly does?
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
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