Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6498

Backport JBSEAM-4383: add cache-control-filter to web namespace in components.xml

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.2 ER1
    • EAP_EWP 5.1.0
    • Seam2
    • 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"/>

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-support-jshepher Jason Shepherd
            Eva Kopalova Eva Kopalova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: