bp_media_ie_nocache_headers_fix( array $headers )
Filter headers for IE to fix issues over SSL.
Description
IE bug prevents download via SSL when Cache Control and Pragma no-cache headers set.
Parameters
- $headers
-
(Required) HTTP headers.
Return
(array)
Source
File: bp-media/bp-media-functions.php
function bp_media_ie_nocache_headers_fix( $headers ) { if ( is_ssl() && ! empty( $GLOBALS['is_IE'] ) ) { $headers['Cache-Control'] = 'private'; unset( $headers['Pragma'] ); } return $headers; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.