W3cubDocs

/WordPress

apply_filters( 'nocache_headers', array $headers )

Filters the cache-controlling headers.

Description

See also

Parameters

$headers

(array) Header names and field values.

  • 'Expires'
    (string) Expires header.
  • 'Cache-Control'
    (string) Cache-Control header.

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

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