Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###########################################################
- ################## `GZIP` COMPRESSION ###################
- # Description: If using `DEFLATE`, then you dont need GZIP. But if `DEFLATE`
- # doesnt work, then use this method (some say it's CPU intensive).
- ###########################################################
- <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 mime ^font/.*
- mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
- </IfModule>
- ###########################################################
- ################ Manual `GZIP` COMPRESSION ###############
- # Description: If your hosting doesn’t have this module enabled, instead of above code,
- # you can use manual method. This method uses PHP function to GZIP files.
- # However, this is very CPU intensive. #
- ###########################################################
- # Compressing PHP files :
- php_value output_handler ob_gzhandler
- # Compressing static files: use i.e. JSmart Compressor - https://goo.gl/ai6teJ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement