Skip to content

Commit c213e62

Browse files
committed
Site Health: Add common cache headers for improved caching diagnostics
1 parent 74b60c2 commit c213e62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,6 +3412,16 @@ public function get_page_cache_headers() {
34123412
},
34133413
'x-srcache-store-status' => $cache_hit_callback,
34143414
'x-srcache-fetch-status' => $cache_hit_callback,
3415+
3416+
// Generic caching proxies (Nginx, Varnish, etc.)
3417+
'x-cache' => $cache_hit_callback,
3418+
'x-cache-status' => $cache_hit_callback,
3419+
3420+
// Cloudflare
3421+
'cf-cache-status' => $cache_hit_callback,
3422+
3423+
// Apache mod_cache
3424+
'x-cache-detail' => $cache_hit_callback,
34153425
);
34163426

34173427
/**

0 commit comments

Comments
 (0)