Custom HTTP Headers Missing
-
I’m adding custom HTTP headers to a few of my blog posts as follows
add_action('template_redirect', 'gd_custom_http_headers'); function gd_custom_http_headers() { // our logic based on post ID header('X-Robots-Tag: nofollow'); // sometimes header('X-GD-API-KEY: xxxxxxxxxxxxxxxxxxxx'); }
1. It works fine initially “with” and “without” cache buster parameter swcfpc=1
2. After few days (2-3 days), all my custom headers were missing. However, if I log in and add swcfpc=1 parameter, I could see my custom headers correctly.
3. When I hit “Purge whole cache”, it started working again temporarily for 2-3 days.
I’m not sure where I’m doing it wrong.
Thank you
Note: Website is running on LiteSpeed server and FlyingPress for files optimizations. I have already disabled FlyingPress cache and enabled Fallback cache in your plugin.
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom HTTP Headers Missing’ is closed to new replies.