Wordpress APO cf-edge-cache response header is missing!

What is the name of the domain?

What is the error message?

cf-edge-cache response header is missing! Please clear any server cache used via other plugins.

What is the issue you’re encountering

I don’t think the APO is working properly

What steps have you taken to resolve the issue?

I followed the instructions and went to HTTP response header check | Uptrends. I saw two of the three indicators it was working: CF-Cache-Status | HIT, cf-edge-cache | cache, platform=wordpress. But I didn’t see cf-apo-via | tcache so I added: function add_cloudflare_apo_headers() {
if (function_exists(‘header’)) {
// Add Cloudflare APO Headers
header(“cf-edge-cache: cache, platform=wordpress”);
header(“cf-apo-via: tcache”);
}
}
add_action(‘send_headers’, ‘add_cloudflare_apo_headers’);

to the functions.php file. This resolved the issue on uptrend and I now see all three indicators that its working properly: CF-Cache-Status | HIT, cf-apo-via | tcache, cf-edge-cache | cache, platform=wordpress. But I’m still getting the same error message in the Cloudflare plugin on Wordpress. Is this most likely a false error message if I can also see the proper setup when I go into my terminal and use “curl -I https://soulemedia.com” and see those three messages are working correctly as well?

It looks like it’s working now.

> GET / HTTP/2
> Host: soulemedia.com
> User-Agent: curl/8.7.1
> Accept: */*
> 
* Request completely sent off
< HTTP/2 200 
< date: Thu, 09 Jan 2025 23:52:29 GMT
< content-type: text/html; charset=UTF-8
< cf-ray: 8ff85762897d2ea2-LAX
< cf-cache-status: HIT
< age: 2501
< cache-control: max-age=14400
< last-modified: Thu, 09 Jan 2025 23:10:47 GMT
< link: <https://soulemedia.com/wp-json/>; rel="https://api.w.org/", <https://soulemedia.com/wp-json/wp/v2/pages/9>; rel="alternate"; title="JSON"; type="application/json", <https://soulemedia.com/>; rel=shortlink
< vary: Accept-Encoding
< cf-apo-via: tcache
< cf-edge-cache: cache,platform=wordpress

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.