On this page
apply_filters( 'rest_send_nocache_headers', bool $rest_send_nocache_headers )
Filters whether to send nocache headers on a REST API request.
Parameters
$rest_send_nocache_headersbool-
Whether to send no-cache headers.
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
$send_no_cache_headers = apply_filters( 'rest_send_nocache_headers', is_user_logged_in() );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Server::serve_request() wp-includes/rest-api/class-wp-rest-server.php | Handles serving a REST API request. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_send_nocache_headers