Hi @rockfire
I used this code:
function wprc_add_postmeta_cache_control( $cacheable_headers ) {
$cacheable_headers['custom/v1/post_meta'] = 'Cache-Control';
return $cacheable_headers;
}
add_filter('wp_rest_cache/cacheable_request_headers', 'wprc_add_postmeta_cache_control', 10, 1);
I would like to know how I can modify the content, e.g., {“Cache-Control”:null} to {“Cache-Control”:”max-age=604800″}