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

I am looking for an LTO tape library. Do you have one to spare?
Website Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 mod_gzip
Author: Ronald Klop 
Date:   22-02-05 01:31

Hello,

Why don't you use mod_gzip (apache1) or mod_deflate (apache2) to compress your pages? It saves a lot of bandwidth and gives a faster result usually. Especially with large tables. It is very easy to set up with apache.

Ronald.

Reply To This Message
 
 Re: mod_gzip
Author: Dan 
Date:   22-02-05 01:39

Provide details! So other can do it too.

Reply To This Message
 
 Re: mod_gzip
Author: Dan 
Date:   22-02-05 01:44

Done. How's that?

Reply To This Message
 
 Re: mod_gzip
Author: Ronald Klop 
Date:   23-02-05 21:11

It doesn't work yet. If you use ngrep or ethereal to view the html 'on-the-wire' you should see a header 'Content-Encoding: gzip'. Are you using mod_gzip or mod_deflate?Dan wrote:

> Done. How's that?

Reply To This Message
 
 Re: mod_gzip
Author: Dan 
Date:   23-02-05 23:50

Ronald Klop wrote:

> It doesn't work yet. If you use ngrep or ethereal to view the
> html 'on-the-wire' you should see a header 'Content-Encoding:
> gzip'.
>
> Are you using mod_gzip or mod_deflate?

mod_gzip

Reply To This 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
</IfModule>

It's great that this is being added!


Footnotes:

[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
 
 Re: mod_gzip
Author: JunkMale 
Date:   11-03-05 17:29

I will try this ASAP.

I welcome nagging if it doesn't appear by Monday.

--
Dan Langille - webmaster

Reply To This Message
 
 Re: mod_gzip
Author: Dan 
Date:   13-03-05 11:52

Have a look at http://beta.freshports.org/

Do you see what you want there?

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


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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-2014 Dan Langille. All rights reserved.