httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Khrustalev <d...@bog.msu.su>
Subject Re: HTTP Compression in Mozilla
Date Tue, 22 Sep 1998 13:31:27 GMT

well, i'm running httpd with streaming gzip compression on www.rbc.ru now

total traffic for 17 hours is 3.87 GB
compression saved 0.645 GB.

responses are selected for compression using this algorithm:

r->proto_num >= HTTP_VERSION(1,1)) &&
	r->status == HTTP_OK &&
	!ap_table_get(r->headers_in, "Via") &&
	ae = ap_table_get(r->headers_in, "Accept-Encoding") &&
	ap_find_token(r->pool, ae, "gzip") &&
	ce == NULL &&
	r->byterange == 0 &&
	ct != NULL &&
	!strncasecmp(ct, "text/", 5))

where ct is content-type of response and ce is content-encoding.

	-Dima

On Mon, 21 Sep 1998, Jim Gettys wrote:

> The sad thing is that zlib is set up properly for streaming data through
> it (just as you want for progressive HTML rendering).  And zlib is
> freely available (I think it is under a GPL).
> 
> This is why Henrik found it so easy to implement transfer coding
> in libwww; it really was "an afternoon hack".
> 				- Jim
> 
> 


Mime
View raw message