Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust .htaccess to serve compressed files/output when applicable #212

markkap opened this Issue Jan 7, 2019 · 0 comments


None yet
1 participant
Copy link

markkap commented Jan 7, 2019

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.
JSON might also be a candidate but most of the time it should be small therefore will leave compression to be done at application side. XML is not used much these days, but it is being used for sitemaps so probably worth having it included.

@markkap markkap added this to the 1.0.0 milestone Jan 7, 2019

@markkap markkap closed this Jan 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.