WC_Download_Handler::ie_nocache_headers_fix()public staticWC 1.0

Filter headers for IE to fix issues over SSL.

IE bug prevents download via SSL when Cache Control and Pragma no-cache headers set.

Method of the class: WC_Download_Handler{}

No Hooks.

Return

Array.

Usage

$result = WC_Download_Handler::ie_nocache_headers_fix( $headers );
$headers(array) (required)
HTTP headers.

WC_Download_Handler::ie_nocache_headers_fix() code WC 9.4.2

public static function ie_nocache_headers_fix( $headers ) {
	if ( is_ssl() && ! empty( $GLOBALS['is_IE'] ) ) {
		$headers['Cache-Control'] = 'private';
		unset( $headers['Pragma'] );
	}
	return $headers;
}