WC_Download_Handler::ie_nocache_headers_fix()
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() 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; }