Skip to content

Instantly share code, notes, and snippets.

@yudaprawira
Created September 1, 2016 03:47
Show Gist options
  • Save yudaprawira/0c371ba18ac1cc5597590b236b12a56c to your computer and use it in GitHub Desktop.
Save yudaprawira/0c371ba18ac1cc5597590b236b12a56c to your computer and use it in GitHub Desktop.
gzip
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl|woff2)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment