Browser Caching breaks Child Theme Headers.
-
I have a child theme containing a block of code designed to add various security headers. Whenever I enable WP-Fastest-Cache, they are not included in the header.
function security_headers() { header('Strict-Transport-Security: max-age=31536000; includeSubDomains'); header('X-Frame-Options: SAMEORIGIN'); header('X-Content-Type-Options: nosniff'); header('Referrer-Policy: same-origin'); // etc... } add_action( 'init', 'security_headers' );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Browser Caching breaks Child Theme Headers.’ is closed to new replies.