Skip to content

Commit d34430e

Browse files
committed
Site Health: Add common HTTP response headers for page cache detection.
Developed in WordPress/wordpress-develop#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
1 parent 84655a4 commit d34430e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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+
'x-litespeed-cache' => $cache_hit_callback,
3420+
'x-proxy-cache' => $cache_hit_callback,
3421+
'via' => '',
3422+
3423+
// Cloudflare
3424+
'cf-cache-status' => $cache_hit_callback,
34153425
);
34163426

34173427
/**

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61354';
19+
$wp_version = '7.0-alpha-61355';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)