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 ZLib Support enabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version 126.96.36.199 Linked Version 188.8.131.52 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
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
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 ob_start("ob_gzhandler"); ?> <html> <body> <p>This should be a compressed page.</p> </html> <body>
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
Within the official wiki of Dreamhost they enable this by modifying an htaccess:
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%.