• Up front, I don’t think this is actually a problem with the plugin. I think the plugin works fine.

    What’s weird is that it seemed like either Nexcess’ Page Cache or maybe CloudFlare is stripping CSP headers from cached pages.

    If I use a tool like https://csp-evaluator.withgoogle.com/ sometimes it sees the CSP header, sometimes it doesn’t. It seems like if I add a cache busting query string I always see the CSP header. If I don’t, no CSP header. Cache cleared, and this has gone on for days. Disabling those things though doesn’t bring back CSP 100% of the time either.

    Nexcess also has an nginx proxy independent of page caching I think, I wonder if that’s causing it.

    Maybe someone has other ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter Jon Brown

    (@jb510)

    Maybe related to this, maybe not…

    I’m also seeing an error in my log file on wp-cron.php requests

    [30-Oct-2021 18:12:32 UTC] PHP Warning: Cannot modify header information – headers already sent in /chroot/home/a385dbeb/domain/html/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php on line 72

    Should CSP even run on a cron?

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with caching’ is closed to new replies.