SourceForge.net: Project Info – mod_gzip:
“mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. “
The first thing to look at in the weightwatching game is on-the-fly file compression: easily done. My index.html page went from 103,791 bytes to a more svelte 24,931 — a more than 75% savings. Since all modern browsers (ie, able to converse in http/1.1) can work with content-encoding-enabled servers, this was simplicity itself.
Simply add the mod_gzip module, and swipe someone else’s configuration đŸ˜‰ :
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_can_negotiate yes
mod_gzip_keep_workfiles no
mod_gzip_temp_dir /tmp
mod_gzip_min_http 1000
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_command_version modgzip_info
mod_gzip_add_header_count yes
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
I suppose I could add .css and .js files to the list of compressible files. I’ll have to check and see how many errors are generated by this (does anyone not use a modern-enough browser??).
[Posted with ecto]