Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2012
    Posts
    89
    Thanks
    51
    Thanked 0 Times in 0 Posts

    Are files automatically GZIP'd?

    Hi

    I found some htaccess code today that GZIPs your files.

    Code:
    <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>
    I thought that Apache automatically did this? Or do you have to turn this on?

    Would you recommmend turning this on?

  • #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    You need to tell Apache to do it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •