Suppressing whitespace in ColdFusion with Railo
I've been meaning to blog this for a while.
When it comes to getting rid of the amazing amount of whitespace CF can generate in your page there are quite for tricks to getting around this from multiple tags to server filters that you can use.
With Railo its a little more simplier. Log in to your admin panel, go to "Output" in the left hand side and check "Whitespace management: Removes all white spaces in the output that follow a white space".
| Tweet |
@Tom K: We cannot really measure it since the amount of time it takes is outperformed by the lower load time it has since it's only transferring less bytes. Of course if you otherwise would transfer tons of data, it would be very effective.
Just as a background info: Railo checks the response stream and supresses every whitespace that follows a whitespace.
Gert Franz
Railo, Switzerland
@Tom I wouldn't expect to much but that might be a question for the Railo Google Groups to see if any of the dev team can help with whats involved
unfortunately there's a known bug in Railo where using cfsetting to stop it adjusting the whitespace doesn't work once it's turned on at a server level. I started digging through the Railo source the other day to see if I could get to the bottom of the issue but it was too ambitious a project for the early hours of the morning :)