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.
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.