Title: site_status_page_cache_supported_cache_headers
Published: November 2, 2022
Last modified: May 20, 2026

---

# apply_filters( ‘site_status_page_cache_supported_cache_headers’, array<string,  )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#wp--skip-link--target)

Filters the list of cache headers supported by core.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#description)󠁿

This list indicates how each of the specified headers will be checked to indicate
if a page cache is enabled or not. WordPress checks for each of the headers in the
returned array. If the callback is provided, it will be passed the value for the
corresponding header and return a boolean value indicating if the header suggests
that a cache is active. If the value is `null` for the header, then WordPress will
assume that a cache is active if the header is present, regardless of its value.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#parameters)󠁿

?callable> $cache_headers Mapping from cache-related HTTP headers to whether they
indicate if a page cache is enabled for the site. `null` indicates caching in the
presence of the header; a callback is provided the header’s value and should return`
true` if it implies that a cache is active.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#source)󠁿

    ```php
    return (array) apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-site-health.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-site-health.php#L3595)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L3595-L3595)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Site_Health::get_page_cache_headers()](https://developer.wordpress.org/reference/classes/wp_site_health/get_page_cache_headers/)`wp-admin/includes/class-wp-site-health.php` |

Returns a mapping from response headers to an optional callback to verify if page cache is enabled or not.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/site_status_page_cache_supported_cache_headers/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsite_status_page_cache_supported_cache_headers%2F)
before being able to contribute a note or feedback.