Rails + gzip: random content-length header
I'm running Rails on LSWS with dynamic response gzip compression. I noticed that Safari would try to render even short pages before they were fully loaded, and blamed it on the missing content-length header. In order to get a content-length header I enabled response buffering. Unfortunately it doesn't work reliably; some responses have a content-length header, some just don't (for the same request). Any ideas why that might be?