eSnippets.net, a code gallery for creating, saving and sharing all kinds of code snippets.

GZIP compression - make your site load faster — htaccess

Posted On: Sunday, May 4, 2014 at 12:59 PM Last updated: Sunday, May 4, 2014 at 1:14 PM

Make your site load quicker by using 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>

You need to be logged in to comment! x

rpjs

Joined on Saturday, May 3, 2014
Contributed 29 Snippets

Get Social and Share

Tags