Doc Library Downloads On IE7 / IE8 Browsers Affected By Fix For LPS-27419

Description

The following commit: https://github.com/mikakoivisto/liferay-portal/commit/07191c476777bb1baa53a6bf070debc174fcbd1c has led to IE7/IE8 browsers being unable to download files from the document library due to their response to the private cache control headers on our SSL Liferay installation:

Pragma: no-cache Cache-Control: private

Please refer to http://support.microsoft.com/kb/316431 for a write up by Microsoft on the by-design behavior.

We noticed this change in behavior because we just upgraded from 6.0.12 EE to 6.1.20 EE GA2.

Our current workaround is to override the behavior of the PortletResponseUtil and ServletResponseUtil classes' setHeaders(request, response, fileName, contentType) method to switch those headers over to being:

Pragma: public Cache-Control: public

only for IE browsers that are requesting content from the Documents directory. It does the trick but might not be the most elegant solution at this point.

Activity

Show:

MikaM February 4, 2013 at 2:42 PM

Jang Kim September 11, 2012 at 3:53 PM

Hi Chris,
The fix was committed in https://liferay.atlassian.net/browse/LPS-29645#icft=LPS-29645. You can see here for diff:
https://github.com/brianchandotcom/liferay-portal/compare/ef4c809d02...0f667ee1e1

The solution is to remove Pragma header

Chris Dawson September 6, 2012 at 8:43 AM

Duplicate
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Priority

Zendesk Support

Created September 6, 2012 at 8:35 AM
Updated June 24, 2023 at 4:00 PM
Resolved February 4, 2013 at 2:42 PM

Flag notifications