Welcome to WebmasterWorld Guest from 34.204.191.31

Forum Moderators: phranque

Message Too Old, No Replies

mod deflate and SEs

     
8:43 pm on Mar 12, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 5, 2002
posts:1864
votes: 5


I just started using the mod_deflate apache module to serve my pages in a compressed form for decompression by the client. Has anyone heard of SE spiders having trouble handling that? The served pages shouldn't be compressed unless the client passes certain headers to indicate they can handle it, but I wanted to check with you guys anyway.
4:35 pm on Mar 13, 2007 (gmt 0)

Senior Member from NL 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts:2955
votes: 35


Serving compressed pages to the search engines can be an advantage because it reduces bandwidth. I switched to mod_deflate about a year ago and have not seen any problems with the search engines.

As far as I remember Googlebot requests compressed content, I am not sure about the other search engines.

5:17 pm on Mar 13, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 5, 2002
posts: 1864
votes: 5


Thanks lammert. I guess mod_deflate is built into apache2 now?
9:08 pm on Mar 13, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


It is, but it is an extension [httpd.apache.org] module.
11:12 pm on Mar 13, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 5, 2002
posts: 1864
votes: 5


Thanks coopster. Apparently it is installed by default in Gentoo.
11:17 pm on Mar 13, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 5, 2002
posts: 1864
votes: 5


By the way, please let me know if you did anything other than this in httpd.conf to get it going:

AddOutputFilter DEFLATE html css

7:05 am on Mar 14, 2007 (gmt 0)

Senior Member from NL 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts:2955
votes: 35


My httpd.conf contains

AddOutputFilterByType DEFLATE text/html text/plain text/xml
DeflateCompressionLevel 1

There are several compression levels between 1 and 9. The resulting page size difference between levels 1 and 9 is not very large, but for my celeron server there is a noticable difference in compression time between the two. Therefore I have use the lowest compression level.