How can I set HTTP headers to a Portal response to avoid caching at proxy level?

Solution Verified - Updated -

Issue

  • The proxy server fronting JBoss Portal caches content. We would like to avoid caching, and have tried to set the response headers by adding the following to $EPP_HOME/server/$SERVER_CONFIG/deploy/jboss-portal.sar/portal-core.war/WEB-INF/jsp/header/header.jsp, however this does not have an effect, the headers are not added as expected:

     response.setHeader("Cache-Control","no-store");
     response.setHeader("Pragma","no-cache"); 
     response.setDateHeader ("Expires", -1); 
    

Environment

  • JBoss Enterprise Portal Platform (EPP) 4.3

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