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.
- 'Expires'
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Typically, you can call WordPress’ nocache_headers() function when you don’t want content to be cached.