How to disable Cache-Control and Pragma HTTP Headers in JBoss EAP 7

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content