Title: Duplicate Headers
Last modified: January 6, 2024

---

# Duplicate Headers

 *  Resolved [nyce22](https://wordpress.org/support/users/nyce22/)
 * (@nyce22)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/duplicate-headers-3/)
 * The latest version of Breeze is creating duplicate security headers. I looked
   at the cached html file and scrolled through the html code and found the headers
   listed below the closing <html> tag in the Breeze tag. It’s pulling them from
   my .htaccess file where I have them already set and setting them again. The old
   versions did not do this. Is there a way to disable this?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17325103)
 * To facilitate this process, it would be immensely helpful if you could provide
   us with the code snippet that should be added to the .htaccess file.
 *  Thread Starter [nyce22](https://wordpress.org/support/users/nyce22/)
 * (@nyce22)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17325626)
 * Hello, I meant my security headers are being added to the html file causing duplicate
   headers: this is at the bottom of one of my cached pages:
 * <!– Cache served by breeze CACHE – Last modified: Thu, 04 Jan 2024 09:45:51 GMT–
   >
   “;s:7:”headers”;a:10:{i:0;a:2:{s:4:”name”;s:14:”Content-Length”;s:5:”value”;
   i:146902;}i:1;a:2:{s:4:”name”;s:12:”Content-Type”;s:5:”value”;s:24:”text/html;
   charset=utf-8″;}i:2;a:2:{s:4:”name”;s:13:”Last-Modified”;s:5:”value”;s:29:”Thu,
   04 Jan 2024 09:45:51 GMT”;}i:3;a:2:{s:4:”name”;s:23:”content-security-policy”;
   s:5:”value”;s:25:”upgrade-insecure-requests”;}i:4;a:2:{s:4:”name”;s:15:”x-frame-
   options”;s:5:”value”;s:10:”SAMEORIGIN”;}i:5;a:2:{s:4:”name”;s:15:”referrer-policy”;
   s:5:”value”;s:26:”no-referrer-when-downgrade”;}i:6;a:2:{s:4:”name”;s:25:”strict-
   transport-security”;s:5:”value”;s:16:”max-age=31536000″;}i:7;a:2:{s:4:”name”;
   s:22:”x-content-type-options”;s:5:”value”;s:7:”nosniff”;}i:8;a:2:{s:4:”name”;
   s:18:”permissions-policy”;s:5:”value”;s:17:”fullscreen=(self)”;}i:9;a:2:{s:4:”
   name”;s:16:”x-xss-protection”;s:5:”value”;s:13:”1; mode=block”;}}}
 *  Thread Starter [nyce22](https://wordpress.org/support/users/nyce22/)
 * (@nyce22)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17335224)
 * bump
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17335519)
 * Please insert the following code into the child theme’s functions.php:
 * add_filter(‘breeze_custom_headers_allow’, function($custom_headers){ return array();});
 * After adding the code, navigate to the Breeze plugin and save settings on the‘
   Basic’ tab to reset the breeze-config.php file.
 * Thank you!
    -  This reply was modified 2 years, 4 months ago by [adeelkhan](https://wordpress.org/support/users/adeelkhan/).
 *  Thread Starter [nyce22](https://wordpress.org/support/users/nyce22/)
 * (@nyce22)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17337939)
 * Hello, it won’t let me save the file I get an error:
 * Your PHP code changes were not applied due to an error on line 48 of file wp-
   content/themes/mytheme/functions.php. Please fix and try saving again.Uncaught
   Error: Undefined constant “‘breeze_custom_headers_allow’” in wp-content/themes/
   mytheme/functions.php:48 Stack trace: #0 wp-settings.php(611): include() #1 wp-
   config.php(104): require_once(‘…’) #2 wp-load.php(50): require_once(‘…’) #3 wp-
   admin/admin.php(34): require_once(‘…’) #4 wp-admin/theme-editor.php(10): require_once(‘…’)#
   5 {main} thrown
 *  Thread Starter [nyce22](https://wordpress.org/support/users/nyce22/)
 * (@nyce22)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17338015)
 * never mind it was because of curly quotes’’ not being straight. It works thank
   you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Duplicate Headers’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [nyce22](https://wordpress.org/support/users/nyce22/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/duplicate-headers-3/#post-17338015)
 * Status: resolved