WordPress at Your Fingertips
function is not described

WC_Download_Handler::ie_nocache_headers_fix() public WC 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.

{} It's a 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.

Code of WC_Download_Handler::ie_nocache_headers_fix() WC 5.6.0

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