Commit d34430e235 for wordpress.org
commit d34430e23525d416a7462662dec55c07446bc6e9
Author: Weston Ruter <weston@xwp.co>
Date: Sat Dec 6 01:53:29 2025 +0000
Site Health: Add common HTTP response headers for page cache detection.
Developed in https://github.com/WordPress/wordpress-develop/pull/10598
Follow-up to [54043].
Props akshat2802, szepeviktor, dmsnell, vincentbreton, dannythedog, westonruter.
See #56041.
Fixes #63748.
Built from https://develop.svn.wordpress.org/trunk@61355
git-svn-id: http://core.svn.wordpress.org/trunk@60667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
index 8388d7ad37..a5a8c7f4da 100644
--- a/wp-admin/includes/class-wp-site-health.php
+++ b/wp-admin/includes/class-wp-site-health.php
@@ -3412,6 +3412,16 @@ class WP_Site_Health {
},
'x-srcache-store-status' => $cache_hit_callback,
'x-srcache-fetch-status' => $cache_hit_callback,
+
+ // Generic caching proxies (Nginx, Varnish, etc.)
+ 'x-cache' => $cache_hit_callback,
+ 'x-cache-status' => $cache_hit_callback,
+ 'x-litespeed-cache' => $cache_hit_callback,
+ 'x-proxy-cache' => $cache_hit_callback,
+ 'via' => '',
+
+ // Cloudflare
+ 'cf-cache-status' => $cache_hit_callback,
);
/**
diff --git a/wp-includes/version.php b/wp-includes/version.php
index b057e153b4..4ef8ca0bf8 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61354';
+$wp_version = '7.0-alpha-61355';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.