How To Save Traffic With Lighttpd's mod_compress (Debian Squeeze) | Linux Today

How To Save Traffic With Lighttpd’s mod_compress (Debian Squeeze)

Written By
FT
Falko Timme
Apr 7, 2011

[ Thanks to Falko
Timme
for this link. ]

“In this tutorial I will describe how to configure mod_compress
on a Lighttpd web server (on Debian Squeeze). mod_compress allows
Lighttpd to compress files and deliver them to clients (e.g.
browsers) that can handle compressed content which most modern
browsers do. With mod_compress, you can compress HTML, CSS,
Javascript, text or XML files to approx. 20 – 30% of their original
sizes, thus saving you server traffic and making your modem users
happier.

“Compressing files causes a slightly higher load on the server,
but in my experience this is compensated by the fact that the
clients’ connection times to your server decrease a lot. For
example, a modem user that needed seven seconds to download an
uncompressed HTML file might now only need two seconds for the
same, but compressed file.

“By using mod_compress you don’t have to be afraid that you
exclude users with older browsers that cannot handle compressed
content. The browser negotiates with the server before any file is
transferred, and if the browser does not have the capability to
handle compressed content, the server delivers the files
uncompressed.”


Complete Story

FT

Falko Timme

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.