| Article: |
Two Servlet Filters Every Web Application Should Have | |
| Subject: | Bufffering | |
| Date: | 2003-12-17 03:20:00 | |
| From: | anonymous2 | |
| I wonder why the GZip filter buffers all output to an internal buffer, instead of sending directly to the client the compressed output. In this way, memory is wasted and client cannot process intermediate results. | ||
Showing messages 1 through 1 of 1.
-
Bufffering
2003-12-18 21:31:24 jfalkner [View]
Buffering the content allows for the filter to correctly set the "Content-Length" HTTP header. When you compress content you almost always end up sending fewer bytes of information, meaning you need to modify this header.


