You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/performance-lab/includes/site-health/bfcache-compatibility-headers/helper.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ function perflab_bfcache_compatibility_headers_check(): array {
29
29
'color' => 'blue',
30
30
),
31
31
'description' => '<p>' . wp_kses(
32
-
__( 'If the <code>Cache-Control</code> page response header includes directives like <code>no-store</code>, <code>no-cache</code>, or <code>max-age=0</code> then it can prevent instant back/forward navigations (using the browser bfcache). Your siteis configured properly.', 'performance-lab' ),
32
+
__( 'If the <code>Cache-Control</code> page response header includes directives like <code>no-store</code>, <code>no-cache</code>, or <code>max-age=0</code> then it can prevent instant back/forward navigations (using the browser bfcache). These are not present for unauthenticated requests on your site, so it is configured properly. Note that WordPress adds these directives for logged-in page responses.', 'performance-lab' ),
33
33
array( 'code' => array() )
34
34
) . '</p>',
35
35
'actions' => '',
@@ -50,7 +50,7 @@ function perflab_bfcache_compatibility_headers_check(): array {
50
50
$result['description'] = '<p>' . wp_kses(
51
51
sprintf(
52
52
/* translators: 1: the error code, 2: the error message */
53
-
__( 'The request to check the <code>Cache-Control</code> response header for the home page resulted in an error with code <code>%1$s</code> and the following message: %2$s.', 'performance-lab' ),
53
+
__( 'The unauthenticated request to check the <code>Cache-Control</code> response header for the home page resulted in an error with code <code>%1$s</code> and the following message: %2$s.', 'performance-lab' ),
Copy file name to clipboardExpand all lines: plugins/performance-lab/tests/includes/site-health/bfcache-compatibility-headers/test-bfcache-compatibility-headers.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -87,27 +87,27 @@ public function data_test_bfcache_compatibility(): array {
'The <code>Cache-Control</code> response header for the home page includes the following directive: <code>no-store</code>',
90
+
'<p>The <code>Cache-Control</code> response header for an unauthenticated request to the home page includes the following directive: <code>no-store</code>',
'The <code>Cache-Control</code> response header for the home page includes the following directive: <code>no-cache</code>',
95
+
'<p>The <code>Cache-Control</code> response header for an unauthenticated request to the home page includes the following directive: <code>no-cache</code>',
'The <code>Cache-Control</code> response header for the home page includes the following directive: <code>max-age=0</code>',
100
+
'<p>The <code>Cache-Control</code> response header for an unauthenticated request to the home page includes the following directive: <code>max-age=0</code>',
'The <code>Cache-Control</code> response header for the home page includes the following directives: <code>no-store</code>, <code>max-age=0</code>',
105
+
'<p>The <code>Cache-Control</code> response header for an unauthenticated request to the home page includes the following directives: <code>no-store</code>, <code>max-age=0</code>',
0 commit comments