I've discovered a few lessons regarding how to enable gzip, btu nothing appears to become employed by me, so my real question is how do you enable gzip. I'm on the shared Dreamhost server, It's running PHP version 5.2, and Apache, in the php info i've discovered this line, maybe this might help?


ZLib Support    enabled
Stream Wrapper support  compress.zlib://
Stream Filter support   zlib.inflate, zlib.deflate
Compiled Version
Linked Version

Directive   Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level   -1  -1
zlib.output_handler no value    no value

I've also found this line


I'm not sure in the event that has anything related to it. But that's my first question, next, i've dropbox, hosting a javscript file, and i'm wondering can you really obtain that file gzipped, It's not being transfered compressed, same with ther any method of doing so?

are you currently attempted with doctor_gzhandler?

php manual

<p>This should be a compressed page.</p>

tip: sometimes is fairly tricky to identify when the web is send compressed or otherwise, i personally use firefox's firebug wordpress plugin, i examined a php file without compression with compression and compare the dimensions, during my situation, the main difference was 1mb (non compressed) and 56kb compressed.

Or perhaps in your .htaccess

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css         application/x-javascript application/javascript

Within the official wiki of Dreamhost they enable this by modifying an htaccess:

<IfModule mod_gzip.c>
    mod_gzip_on       Yes
    mod_gzip_dechunk  Yes
    mod_gzip_item_include file      \.(html?|txt|css|js|php|pl|jpg|png|gif)$
    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.*

This essentially inspections to ascertain if mod_czip.c is located and when it's it'll compress the files for you personally so that they are faster to transmit towards the browser. This allegedly accelerates download occasions 35-40%, and so the quality should allegedly go lower to 55-65%.

Having a quick explore Google you are able to develop another thread on Stackoverflow an inside a third party site addressing this problem.