Several questions on mod_gzip

Several questions on mod_gzip

am 04.07.2007 15:38:08 von landemaine

I'm using mod_gzip on my server. I searched for mod_bzip but it seem
it doesn't exist. Is it possible to set mod_gzip to ue the maximum
compression rate? There are files on my server that are static files,
ie: .css, .js and I'd like to know if it's possible to compress them
once for all, ie: style.css.gz, script.js.gz or something like that.
Last but not least, is it possible to send all files required to open
a page (index.html, images, css, etc...) in a single compressed file
to the browser? (This way there would be only one 3-way TCP/IP
connection).
Thanks!

Re: Several questions on mod_gzip

am 04.07.2007 22:57:02 von HansH

"Charles" schreef in bericht
news:1183556288.993048.191350@c77g2000hse.googlegroups.com.. .
> I'm using mod_gzip on my server.
> I searched for mod_bzip but it seem it doesn't exist.
Most likely because no browser accepts bz[[ip]2] for content encoding.
Partially cause might be the lack of a RFC defining it.

BTW Though named mod_gzip the data is in fact *deflated*
zlib http://tools.ietf.org/html/rfc1950
deflate http://tools.ietf.org/html/rfc1951
gzip http://tools.ietf.org/html/rfc1952

> Is it possible to set mod_gzip to ue the maximum
> compression rate?
No, but by modifiing the agged sources downloadable at
http://downloads.sourceforge.net/mod-gzip/mod_gzip-1.3.26.1a .tgz?modtime=1033430400&big_mirror=0
mod_gzip_compress.c, line 1197
- gz1->level = 6;
+ gz1->level = 9;

> There are files on my server that are static files,
> ie: .css, .js and I'd like to know if it's possible to compress them
> once for all, ie: style.css.gz, script.js.gz or something like that.
http://schroepl.net/projekte/mod_gzip/config.htm#precompress ed

> Last but not least, is it possible to send all files required to open
> a page (index.html, images, css, etc...) in a single compressed file
> to the browser?
Do you know a browser able to handle such an archive ?
Normally, the browser's cache will reduce the number of downloads.

>(This way there would be only one 3-way TCP/IP connection).
That should not be an issue these days
http://httpd.apache.org/docs/1.3/mod/core.html#keepalive
The Keep-Alive extension to HTTP/1.0 and the persistent connection feature
of HTTP/1.1 provide long-lived HTTP sessions which allow multiple requests
to be sent over the same TCP connection.


Hansh
--
I only google after losing my goggles.

Re: Several questions on mod_gzip

am 04.07.2007 23:18:03 von landemaine

Thanks Hansh for the very good information.