Not all HTTP responses are getting compressed. Those that aren't I mark
with "!":
- tcpflow -i lo
- firefox mysite #here on localhost
#find -name 127.000.000.001.00080\* -newer /tmp/d|xargs -r ls -t|xargs strings -n 11|
perl -nwe 'next unless /Content-(Encoding|Length|Type)|HTTP/;chomp;
$g=1 if /: gzip/;if(/HTTP/){$g=0;print"\n";next};
if(/Content-(Length|Type)/){print $g?" ":"!"}else{print" "};print"$_\n"'
Content-Encoding: gzip
Content-Length: 64
Content-Type: text/css; charset=UTF-8
!Content-Length: 1078
!Content-Type: image/png
Content-Encoding: gzip
Content-Length: 81
Content-Type: text/css; charset=UTF-8
!Content-Length: 923
!Content-Type: image/gif
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Content-Length: 3809
Content-Type: text/html; charset=UTF-8
!Content-Length: 8973
!Content-Type: text/css
!Content-Length: 4852
!Content-Type: text/css
!Content-Length: 27564
!Content-Type: text/css
Content-Encoding: gzip
Content-Length: 70
Content-Type: text/css; charset=UTF-8
!Content-Length: 50
!Content-Type: image/gif
Content-Encoding: gzip
Content-Length: 92
Content-Type: text/css; charset=UTF-8
!Content-Length: 1933
!Content-Type: image/png
!Content-Length: 7881
!Content-Type: image/jpeg
Running the above thru an additional
grep Content-Type|sort -ubd
!Content-Type: image/gif
!Content-Type: image/jpeg
!Content-Type: image/png
!Content-Type: text/css
Content-Type: text/css; charset=UTF-8
Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=utf-8
shows none of the images, only some of the CSS, and all of the HTML is
compressed. We also note the varying capitalization of "UTF".
apt-show-versions apache2
apache2/unstable uptodate 2.2.11-5
Version: 1.16.x
Severity: minor