Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adjust .htaccess to serve compressed files/output when applicable #212
The naive approach is to compress everything, but images are already compressed and trying to re-compress them is just a waste of CPU time, and OTOH small files are just going to get bigger when compressed. Therefore we are going to compress by default the generated HTML and XML, and JS, CSS, and SVG files.
HTML is usually big enough to be worth it. JS and CSS might be small but most of the time they are big enough so going to compress them all. SVG is a very verbose format and also worth compression.