Custom Headers
-
Hi,
I’m adding some header information via action ‘send_headers’ in my functions.php:
add_action( 'send_headers', 'serverpush' );
Those information are implemented for Server Push and Strict Transport Security:
function serverpush() { header( "Link: </wp-content/themes/tibor/critical-min.css>; rel=preload; as=style, </wp-content/themes/tibor/fonts-subset/affogato-light.woff2>; rel=preload; as=font; type='font/woff2'; crossorigin, </wp-content/themes/tibor/fonts/sourcesanspro-regular-webfont.woff2>; rel=preload; as=font; type='font/woff2'; crossorigin" ); header("strict-transport-security: max-age=2592000; includeSubDomains"); }
When I activate WP Super Cache, those headers are not send anymore.
Is there a way to fix this?Kind regards
Tibor
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Headers’ is closed to new replies.