How to disable Cache-Control and Pragma HTTP Headers in JBoss EAP 7
Issue
JBoss EAP7 is adding Cache-Control and Pragma header automatically even when I disable then using the same configuration as used for EAP6:
<valve>
<class-name>org.apache.catalina.authenticator.BasicAuthenticator</class-name>
<param>
<param-name>disableProxyCaching</param-name>
<param-value>false</param-value>
</param>
<param>
<param-name>securePagesWithPragma</param-name>
<param-value>false</param-value>
</param>
</valve>
<valve>
<class-name>org.apache.catalina.authenticator.SSLAuthenticator</class-name>
<param>
<param-name>securePagesWithPragma</param-name>
<param-value>false</param-value>
</param>
<param>
<param-name>disableProxyCaching</param-name>
<param-value>false</param-value>
</param>
</valve>
Environment
JBoss Enterprise Application Server (EAP) 7.0.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
