Forum

caching headers

Fred
25 March 2017, 12:51
Hi,
In wordpress I added the following code in order to configure WordPress caching headers
function addh_custom_options ( $options ) {
$options['cache_max_age_seconds'] = 86400;
return $options;
}
add_filter( 'addh_options', 'addh_custom_options' );

When I test with
curl -I mydomain.co.uk
, I cannot see any Expires or Cache-Control entries...
Could you please advise

Thank you
Hugo Leisink
25 March 2017, 21:29
This is the Hiawatha forum. For questions about Wordpress, try the Wordpress forum.
This topic has been closed.