This happens in development environment when
parameters:
http.response.debug_cacheability_headers: true
is enabled. I suspect that cacheability debug header becomes quite big on a bit complex sites and hits the default limits in nginx.
I Googled a bit and found a solution that increases limits:
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
I am not sure if we want to include this in the default config and we also do not have dev flavor of the image. I am also not sure how this affects performance. I suspect that it causes each request to consume a bit more memory, which could mean that you would be able to serve less concurrent requests given the same amount of memory.
Anyone else experienced this? Thoughts?