Skip to content

Commit 6c189b7

Browse files
committed
feat: Add common cache headers for improved caching diagnostics
1 parent dd6e577 commit 6c189b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/wp-admin/includes/class-wp-site-health.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,8 +3414,11 @@ public function get_page_cache_headers() {
34143414
'x-srcache-fetch-status' => $cache_hit_callback,
34153415

34163416
// Generic caching proxies (Nginx, Varnish, etc.)
3417-
'x-cache' => $cache_hit_callback,
3418-
'x-cache-status' => $cache_hit_callback,
3417+
'x-cache' => $cache_hit_callback,
3418+
'x-cache-status' => $cache_hit_callback,
3419+
'x-litespeed-cache' => $cache_hit_callback,
3420+
'x-proxy-cache' => $cache_hit_callback,
3421+
'via' => '',
34193422

34203423
// Cloudflare
34213424
'cf-cache-status' => $cache_hit_callback,

0 commit comments

Comments
 (0)