Skip to content

Commit a048e9f

Browse files
committed
Update comments to reflect effective asset cache headers in site health checks
1 parent 2d08732 commit a048e9f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugins/performance-lab/includes/site-health/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
require_once __DIR__ . '/avif-headers/helper.php';
3333
require_once __DIR__ . '/avif-headers/hooks.php';
3434

35-
// Far-Future Headers site health check.
35+
// Effective Asset Cache Headers site health check.
3636
require_once __DIR__ . '/effective-asset-cache-headers/helper.php';
3737
require_once __DIR__ . '/effective-asset-cache-headers/hooks.php';

plugins/performance-lab/tests/includes/site-health/effective-asset-cache-headers/test-effective-asset-cache-headers.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function setUp(): void {
2929
}
3030

3131
/**
32-
* Test that the far-future headers test is added to the site health tests.
32+
* Test that the effective caching headers test is added to the site health tests.
3333
*
3434
* @covers ::perflab_effective_asset_cache_headers_add_test
3535
*/
@@ -46,7 +46,7 @@ public function test_perflab_effective_asset_cache_headers_add_test(): void {
4646
}
4747

4848
/**
49-
* Test that the far-future headers test is attached to the site status tests.
49+
* Test that the effective caching headers test is attached to the site status tests.
5050
*
5151
* @covers ::perflab_effective_asset_cache_headers_add_test
5252
*/
@@ -55,7 +55,7 @@ public function test_perflab_effective_asset_cache_headers_add_test_is_attached_
5555
}
5656

5757
/**
58-
* Test that when all assets have valid far-future headers, the status is "good".
58+
* Test that when all assets have valid effective caching headers, the status is "good".
5959
*
6060
* @covers ::perflab_effective_asset_cache_headers_assets_test
6161
* @covers ::perflab_effective_asset_cache_headers_check_assets
@@ -76,7 +76,7 @@ public function test_all_assets_valid_effective_cache_headers(): void {
7676
}
7777

7878
/**
79-
* Test that when an asset has no far-future headers but has conditional caching (ETag/Last-Modified), status is 'recommended'.
79+
* Test that when an asset has no effective caching headers but has conditional caching (ETag/Last-Modified), status is 'recommended'.
8080
*
8181
* @covers ::perflab_effective_asset_cache_headers_assets_test
8282
* @covers ::perflab_effective_asset_cache_headers_check_assets

0 commit comments

Comments
 (0)