W3cubDocs

/WordPress

apply_filters( ‘nocache_headers’, array $headers )

Filters the cache-controlling HTTP headers that are used to prevent caching.

Description

See also

Parameters

$headersarray
Header names and field values.

Source

$headers = (array) apply_filters( 'nocache_headers', $headers );

Changelog

Version Description
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/nocache_headers