Skip to content

Commit 2f5c911

Browse files
committed
Prevent duplicate markers
1 parent 040204f commit 2f5c911

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

includes/Cloudflare/CloudflareFeaturesManager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ private function update_htaccess_header( $image_settings, $fonts_enabled ) {
8181

8282
if ( $mirage_enabled || $polish_enabled || $fonts_enabled_flag ) {
8383
$rules = array(
84-
'# BEGIN Newfold CF Optimization Header',
8584
'<IfModule mod_headers.c>',
8685
"\tHeader set Set-Cookie \"nfd-enable-cf-opt={$header_value}; path=/; Max-Age=86400; HttpOnly\" env=nfd_cf_opt",
8786
'</IfModule>',
@@ -93,7 +92,6 @@ private function update_htaccess_header( $image_settings, $fonts_enabled ) {
9392
'SetEnvIf Request_URI "^/admin-ajax.php" no_nfd_cf',
9493
'# Apply CF cookie on all non-admin, non-API requests',
9594
'SetEnvIf Request_URI ".*" nfd_cf_opt=!no_nfd_cf',
96-
'# END Newfold CF Optimization Header',
9795
);
9896
}
9997

0 commit comments

Comments
 (0)