Forum

Request statistics, Bytes sent. Compressed or uncompressed?

Stephen R. van den Berg
23 June 2016, 11:34
I was wondering, when I look at the Request statistics - Bytes sent numbers. I have four cases:
a. Plain uncompressed document.
b. Gzfile (precompressed) document which is sent in gzipped form (obviously); this is the old style precompression of versions <10.0.
c. PHP output, uncompressed.
d. PHP output, gzipped by PHP before sending it out.

Now, the question is, for cases b and d, what does the monitor count as Bytes sent? I would hope the actual bytes sent (just the compressed ones); but looking at the stats it seems that it might be counting uncompressed size despite it being transmitted gzipped. Any insights?
Hugo Leisink
23 June 2016, 12:00
The 'Bytes sent' counter shows how many actual bytes have been sent. That's response header plus response body. The format/type of the content is irrelevant.
Stephen R. van den Berg
23 June 2016, 12:14
Brilliant! Thanks.
This topic has been closed.