[wp-trac] [WordPress Trac] #64370: Response header detection in page cache test for Site Health should be more robust
WordPress Trac
noreply at wordpress.org
Fri Feb 20 21:13:16 UTC 2026
#64370: Response header detection in page cache test for Site Health should be more
robust
--------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Site Health | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61711" 61711]:
{{{
#!CommitTicketReference repository="" revision="61711"
Site Health: Improve page cache detection with added header and refined
verification logic.
- Use a more precise regular expression for identifying "HIT" statuses to
avoid false positives (e.g., "no-hit").
- Add specific verification logic for Varnish's `X-Varnish` header.
- Use a `null` value in the header mapping to indicate a header existence
check, when no callback is supplied.
- Improve documentation with links for information about certain headers.
Developed in https://github.com/WordPress/wordpress-develop/pull/10855
Follow-up to [61355], [54043].
Props westonruter, dmsnell.
See #63748.
Fixes #64370.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64370#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list