bp_document_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-document/bp-document-functions.php

3406
3407
3408
3409
3410
3411
3412
function bp_document_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.