Comet Cache does mark the Referrer-Policy header as a cachable header; please see this part of the source code where there’s a list of all the headers cached:
https://github.com/websharks/comet-cache/blob/39589da6c07fc25a9e9da72d50a1c1165d2c0469/src/includes/traits/Shared/HttpUtils.php#L92
It sounds to me like the Referrer-Policy header is either not present when Comet Cache caches the page, or something else is going on.
Thread Starter
gore.m
(@gorem)
I see…
Ive tried HTTP Headers and Security Headers plugins, neither of them is using .htaccess… is strange that the rest of headers is presented. Is there any possibility track and try solve this problem? (I cant use .htaccess, Im on FastCGI, so headers from .htaccess are not presented)
Ive also tried :
add_action('send_headers', function(){
header("Referrer-Policy: no-referrer-when-downgrade");
}, 1);
add_action('wp_headers', function(){
header("Referrer-Policy: no-referrer-when-downgrade");
}, 1);
Thanks you