Menu Close

How to solve Nginx FastCGI that doesn’t work and always MISS

How to solve Nginx FastCGI that doesn't work and always MISS 1

I was scratching my head for hours in troubleshooting this issue. My WordPress website which was caching fine with FastCGI, suddenly stopped caching.

I couldn’t see any HIT or files and folder being created inside the cache folder. And there is no error either.


After so many struggle, I found a blog post with the exact issue.

You simply need to add this to your configurations

# ignore headers to let Nginx control its own cache
fastcgi_ignore_headers Cache-Control Expires;

This will ignore the caching header and let Nginx cache the response.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x