retesere20

Untitled

Aug 22nd, 2016
186
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ###########################################################
  3. ################## `GZIP` COMPRESSION ###################
  4. # Description: If using `DEFLATE`, then you dont need GZIP. But if `DEFLATE`
  5. # doesnt work, then use this method (some say it's CPU intensive).
  6. ###########################################################
  7. <IfModule mod_gzip.c>
  8. mod_gzip_on Yes
  9. mod_gzip_dechunk Yes
  10. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  11. mod_gzip_item_include handler ^cgi-script$
  12. mod_gzip_item_include mime ^text/.*
  13. mod_gzip_item_include mime ^application/x-javascript.*
  14. mod_gzip_item_exclude mime ^image/.*
  15. mod_gzip_item_exclude mime ^font/.*
  16. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  17. </IfModule>
  18.  
  19.  
  20.  
  21.  
  22. ###########################################################
  23. ################ Manual `GZIP` COMPRESSION ###############
  24. # Description: If your hosting doesn’t have this module enabled, instead of above code,
  25. # you can use manual method. This method uses PHP function to GZIP files.
  26. # However, this is very CPU intensive. #
  27. ###########################################################
  28. # Compressing PHP files :
  29. php_value output_handler ob_gzhandler
  30. # Compressing static files: use i.e. JSmart Compressor - https://goo.gl/ai6teJ
RAW Paste Data