Let's talk

s.m.a.r.t digital marketing

G-zip compression

You are here:

6] G-zip compression:
Gzip is a method of compressing files (making them smaller) for faster network transfers.
Enable G-zip compression via .htaccess file

Add the following coe into .htaccess file


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.*


Was this article helpful?
Dislike 0
Views: 63