I'm currently using a plugin called 'Userpro' for user registration and login.
This plugin culprit is that it adds no-store, no-cache headers whenever activated.
I contacted plugin authors for the fix but no avail.
My question if anyone can help. Is there any way to stop this plugin from adding headers automatically.
I've tried the code below. It overrides the header but doesn't stop the plugin from adding its header
function varnish_safe_http_headers() {
header( 'X-UA-Compatible: IE=edge,chrome=1' );
session_cache_limiter('');
header("Cache-Control: public, s-maxage=120");
if( !session_id() )
{
session_start();
}
}
add_action( 'send_headers', 'varnish_safe_http_headers' );
Thanks