I am sure this problem is very common. I have excel export functionality on my application. I am using Websphere. The export doesn't work on IE8 when on SSL. I searched on internet. I found that WAS sets a header "Cache-Control: no-cache". So because of this IE8 won't allow you to download the excel file. I saw some solutions where people say set header in some servlet filter. But it doesn't work. Then I saw one solution which says as below:
“We finally figured out a hack-ish (but simple) fix to the “no-cache” header
We found that each instance of a response.addCookie() call causes the
“no-cache…” to be added to the Cache-Control header. So if we just set the
Cache-Control header after all the cookie processing was complete, the
header would then be passed unmolested to the client.
A silly solution to a silly, undocumented problem (feature).”
Looks pretty simple. But I am not sure how do I know that cookie processing is completed? Can any one help me on that?