Skip to content

Instantly share code, notes, and snippets.

@Wadizorg
Forked from raewrites/enable-compression
Created February 6, 2018 00:23
Show Gist options
  • Save Wadizorg/9f7b41974a0d5ed3f24be7f23f2b7d10 to your computer and use it in GitHub Desktop.
Save Wadizorg/9f7b41974a0d5ed3f24be7f23f2b7d10 to your computer and use it in GitHub Desktop.
Enabling Compression
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment