Details
-
Feature Request
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.0
-
None
-
JBoss Enterprise Application Platform 5.1
Firefox 3.6.17
-
Documentation (Ref Guide, User Guide, etc.), Release Notes
-
Seam could not be configured to add cache-control HTTP headers to the resources served by the Seam resource servlet. You can now configure Seam to automatically add the headers depending on the requested URI in components.xml.
-
Documented as Resolved Issue
-
NEW
Description
A customer has requested we backport JBSEAM-4383 into the EAP 5 stream of Seam2, released with EAP 5.1.x. They would like to use the web:cache-control-filter element in components.xml to add HTTP Headers to responses for requested URLs selected using Regular Expressions eg:
<web:cache-control-filter name="imageCacheControlFilter" regex-url-pattern=".*(\.gif|\.png|\.jpg|\.jpeg)" value="max-age=2592000"/>
<web:cache-control-filter name="cssJsCacheControlFilter" regex-url-pattern=".*(\.css|\.js)" value="max-age=2592000"/>
<web:cache-control-filter name="noCacheCacheControlFilter" regex-url-pattern=".(/application/|/member/|/admin/).\.tisc" value="no-cache, no-store, must-revalidate"/>