Skip to content

Instantly share code, notes, and snippets.

@adamlaki
Created October 14, 2017 17:52
Show Gist options
  • Save adamlaki/b56a8ab216783b593415d8f4334de611 to your computer and use it in GitHub Desktop.
Save adamlaki/b56a8ab216783b593415d8f4334de611 to your computer and use it in GitHub Desktop.
With Apache deflate (which is an improved from Gzip) module you can quickly boost your site performance with some simple line.
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/x-web-app-manifest+json \
application/xhtml+xml \
application/xml \
font/opentype \
image/svg+xml \
image/x-icon \
text/css \
text/html \
text/plain \
text/x-component \
text/xml
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment