Problems with caching
-
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?
- The topic ‘Problems with caching’ is closed to new replies.