Skip to content

Instantly share code, notes, and snippets.

@alltrad3s
Created October 10, 2016 05:06
Show Gist options
  • Save alltrad3s/fe7b0dac54052f797ce6bac416f01251 to your computer and use it in GitHub Desktop.
Save alltrad3s/fe7b0dac54052f797ce6bac416f01251 to your computer and use it in GitHub Desktop.
Como optimizar WordPress con .htaccess
# BEGIN GZIP COMPRESSION
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
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>
# END GZIP COMPRESSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment