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

Top ↑

See also


Top ↑

Parameters

$headers

(array)Header names and field values.

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


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More