can't get gzip to work on all files - RESOLVED

Permalink 1 user found helpful
my site athttp://www.nomad-sites.com runs flawlessly in it's LAMP environment with 99% Page Speed and 91% Yslow Speed. I migrated the same site to a LAMP environment athttp://eclinicalsol.exstream.tv... and it won't gzip the main .js or .css files, which is causing a significant reduction in performance. The average page load time is about 2 seconds more than my site is athttp://www.nomad-sites.com.

I've been trying to go through the php.ini or any other files to figure out why these files are being blocked from compressing. In doing so I created phpinfo.php files for both sites. The one for the site I am trying to fix can be found at:http://eclinicalsol.exstream.tv/phpinfo.php...

My relationship with the server administrator has been adversarial at best in this instance, and I'm wondering if he's managed to block gzip for certain types of files somehow? If anyone can find out why this is happening it'd be amazingly appreciated, as this site is supposed to go live later today.

thanks a bunch.

lackadaize
 
lackadaize replied on at Permalink Reply
lackadaize
Also, I have the following .htaccess:

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
FileETag none
lackadaize replied on at Permalink Reply
lackadaize
In addition to all this, every time I try to add Header Expires nothing happens. I've tried just about every Header Expires code I could find. Some of them did nothing, and some resulted in 500: Internal Server Error.
Blenderite replied on at Permalink Best Answer Reply
Blenderite
Whenever I tried to visit the site, it gave me a 500 error. Couldn't even load it. Sounds like the server admin may have done something.

-Blenderite
lackadaize replied on at Permalink Reply
lackadaize
yeah sorry I've been working on getting the expires headers to work and the site isn't liking that either. I'm thinking it's a problem with the http.conf file? maybe some of the modules I need aren't loaded? Do you know if I need specific modules to be loaded to the DEFLATE command to work?
lackadaize replied on at Permalink Reply
lackadaize
I got rid of the code in the .htaccess that was causing the 500 internal server error. Feel free to take a look.
lackadaize replied on at Permalink Reply
lackadaize
restarted the server after making changes to the httpd.conf file to enable mod_expires, mod_deflate, mod_headers. Hopefully this helps.
lackadaize replied on at Permalink Reply
lackadaize
that fixed the problem with the gzip. Yeehaw! spent a long time on that one. thanks for the help though.