Rails adds a Link header to your responses by default, containing a list of the CSS and JS resources on the page. The problem is that this header can get kind of big, and NGINX blows up if an upstream sends more than 4kb in the headers. Anyone else seen this? Wondering how rare it is...

3
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Noah Gibbs

@nateberkopec You're definitely not the only one. Googling quickly, looks like you can set that buffer size.

And I know I've seen people set it before.

cyberciti.biz/faq/nginx-upstre

0
1y
Jonathan del Strother

@nateberkopec yep, that and CSP headers made us raise nginx’s proxy_buffer_size limit.

0
1y
Chris

@nateberkopec yup, experienced this at work too

0
1y
Replies