I'm trying to cache with this:

proxy_cache_valid 200 4h;
proxy_cache_valid 404 401 1m;

But nignx seems to just ignore the second entry. Is it because I'm not using nginx plus?

  • 1
    This works fine. You have some other problem. Post the output of nginx -T. Jul 7, 2021 at 11:47

1 Answer 1


Does nginx free allows multiple proxy_cache_valid?

The Answer is: Yes it does.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.