Filter hook 'rest_send_nocache_headers'

in WP Core File wp-includes/rest-api/class-wp-rest-server.php at line 485

Description

Filters whether to send no-cache headers on a REST API request.

Occurrences

Filename Line Number
wp-includes/rest-api/class-wp-rest-server.php 485

Parameters

Type Name Description
bool $rest_send_nocache_headers Whether to send no-cache headers.

PHP Doc

/**
		 * Filters whether to send no-cache headers on a REST API request.
		 *
		 * @since 4.4.0
		 * @since 6.3.2 Moved the block to catch the filter added on rest_cookie_check_errors() from wp-includes/rest-api.php.
		 *
		 * @param bool $rest_send_nocache_headers Whether to send no-cache headers.
		 */