Nginx Cache Trouble with Full Cache Everything page rule

Hello, I'm having trouble setting up Nginx caching. I'm using WordPress with Cloudflare (with a "Cache Everything" page rule) and Nginx FastCGI Cache. The problem is that when I enable the "Cache Everything" page rule in Cloudflare, the HTTP header shows nginx-cache: MISS. But when I turn it off, the HTTP header shows nginx-cache: HIT. Do you know how to fix this?
1 Reply
Chaika
Chaika4w ago
Don't look at nginx cache header, look for cf-cache-status header for CF Cache What's happening is: If you have CF caching enabled, you're not hitting your origin/nginx as much since CF is caching on edge If you disable it, then you're constantly hitting your origin/nginx, so you get its cache rather then cf
Want results from more Discord servers?
Add your server