nocache_headers WordPress Filter Hook
The nocache_headers Wordpress hook is used to modify the headers of a Wordpress request to prevent caching. This can be useful for ensuring that a user always sees the most up-to-date version of a page, or for making sure that sensitive information is not cached.
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. |