Using response header filter in JBoss EAP 7 to achieve the same effect as "org.apache.catalina.filters.ExpiresFilter" filter in EAP 6

Solution Verified - Updated -

Issue

  • In EAP 6.4 there was org.apache.catalina.filters.ExpiresFilter.
    What should be used on EAP 7.1?
  • In EAP 7.1, what is the equivalent of the functionality provided by the EAP 6.4 filter org.apache.catalina.filters.ExpiresFilter?
  • How to set response headers to enable client caching on some static content
  • How to setup "Cache-Control" response header in JBoss EAP 7 to cache static resources, such as CSS files and JavaScript files on client/browser side ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In