classafBedSheet::GzipOutStream
sys::Obj sys::OutStream afBedSheet::GzipOutStream
A stream that starts gzipping once data has accumulated past a given (minimum) threshold. When the stream turns gzip, the HTTP Content-Encoding
header is set in the Response.
But at what point do we start gzipping our response?
Well Google recommend between 100 -> 1,000 bytes which is quite a bit gap. Tapestry 5 sets its default to an agressive 100 bytes.
So looking into Maximum Transmission Units it seems for IPv4 it is at least 576 bytes and for IPv6 it a maximum of 1280 bytes. The MTU would also have to include the http header text which, looking at WISP responses, seem to be 150 -> 200 bytes. Simple math is then:
576 - 200 = 376
So the default GZIP threshold is set to 376. Although you should still inspect your site traffic and adjust accordingly.
@see What is recommended minimum object size for gzip performance benefits?