Make WordPress Core

Changeset 61355


Ignore:
Timestamp:
12/06/2025 01:52:00 AM (8 days ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r61123 r61355  
    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
Note: See TracChangeset for help on using the changeset viewer.