title: Cache control in JBoss 7
body: <p>In JBoss 5, I have cache control configured in web.xml.</p>
  
  <pre><code>&lt;filter&gt;
    &lt;filter-name&gt;CacheControlFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.jboss.web.tomcat.filters.ReplyHeaderFilter&lt;/filter-class&gt;
    &lt;init-param&gt;
       &lt;param-name&gt;Cache-Control&lt;/param-name&gt;
       &lt;param-value&gt;max-age=3600&lt;/param-value&gt;
    &lt;/init-param&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;filter-mapping&gt;
     &lt;filter-name&gt;CacheControlFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/images/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;filter-mapping&gt;
     &lt;filter-name&gt;CacheControlFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.js&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>But when I try to deploy the war to JBoss 7. It failed because the filter is gone. Is there an equivalent class in JBoss 7 to replace org.jboss.web.tomcat.filters.ReplyHeaderFilter?</p>
  
  <p>Thanks</p>
  
  <p>In other word, how cache control is handled in JBoss 7?</p>