Proxy Cache Requires Proxy Buffering in Nginx

Official nginx docs on proxy caching as well as most of the guides on the topic don't mention that it only works if proxy buffering is enabled. This may be due to the fact that it's enabled by default.

However from my experience proxy caching has been mostly useless and I usually turn it off to get the extra bit of performance, and only enable it for locations where I use caching.

In addition to that, it is also disabled by default in ingress nginx so it also needs to be enabled for the rules where caching is enabled.

Share:

If you've come this far with the article you may want to know a thing or two about me if you don't already. You can also read other blog posts or about stuff I've learned recently.

This website is open source. If you've come across a mistake please let me know there. For other types of feedback you can reach out to me through email or social-media.