CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Are files automatically GZIP'd? (http://www.codingforums.com/showthread.php?t=279860)

shaunthomson 10-28-2012 04:28 AM

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?

stevenmw 10-29-2012 10:10 AM

You need to tell Apache to do it.


All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.