FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us

We also have a status page:

Website Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: mod_gzip
Author: Piet Delport 
Date:   07-03-05 11:21

The reason it doesn't work yet is probably because mod_gzip ignores chunked responses[1] by default. The following http.conf-snippet from a server of mine enables dechunking[2], and provides a minimized set of directives for handling nearly all content that should be reasonably compressible:

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes

mod_gzip_item_include mime ^text/
mod_gzip_item_include mime ^httpd/unix-directory
mod_gzip_item_include mime ^application/.*xml
mod_gzip_item_include mime ^application/x-javascript

It's great that this is being added!


[1] Chunked encoding is where the server sends the body of the HTTP response as a series of length-prefixed "chunks", instead of the Content-Length header. Programs like PHP use this so that they can start sending dynamically-generated responses before knowing their total length.

[2] mod_gzip's design does not allow it to compress content on the fly, so it (optionally) deals with chunked responses by compressing the entire response on the server side, and then sending it as a normal non-chunked (but compressed) response.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 mod_gzip   new
Ronald Klop 22-02-05 01:31 
 Re: mod_gzip   new
Dan 22-02-05 01:39 
 Re: mod_gzip   new
Dan 22-02-05 01:44 
 Re: mod_gzip   new
Ronald Klop 23-02-05 21:11 
 Re: mod_gzip   new
Dan 23-02-05 23:50 
 Re: mod_gzip   new
Piet Delport 07-03-05 11:21 
 Re: mod_gzip   new
JunkMale 11-03-05 17:29 
 Re: mod_gzip   new
Dan 13-03-05 11:52 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2017 Dan Langille. All rights reserved.