Our JBoss Portal implementation uses SSL. There are a few cases where our portlets serve binary documents (i.e. PDFs, DOCs) via the serveResource method.
Under Internet Explorer we encountered this issue:
So we added the following treatment to the ResourceResponse.
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("EE, w MMM yyyy HH:mm:ss z");
Our servlets worked after making this change but our portlets did not. Upon further investigation we found that the Pragma and Cache-Control headers we being added to the default headers that Tomcat/JBoss Web sets.
The fix for this is simple. In HTTPResponse I changed occurrences of
Being that properties are single key/value pair mappings the setHeader might be more appropriate in this case.
I have attached my version of HTTPResponse.java