Gzip wont work on css or js file types

Hello, I have asked my web admin to enable gzip for my site, it is compressing web pages fine, however it is not working for CSS or JS file types! I am using page speed and Yslow both confirm that css or js is not being compressed.

I then contacted my web server for support and thay have run several test and can confirm the gzip is enabled for that file type, but for some reason wont work for my site :frowning:

I have another site on the same VPS and I can confirm that it compress css and js files for that site,

My server comapny concluded that there had to be an issue with the code?

Has anyone ever come across this issue before or does anyone fancy a challenge?

Regards
Daniel

Since settings in .htaccess trump settings in httpd.conf, it could be that the server wide config (i.e. httpd.conf) is set to compress js and css but the site specific code (i.e. .htaccess) is not.
If that is the case the result is exactly what you describe: works on other sites, but not on this site.

Thanks for the reply,

On the site that it works on there is no .htaccess, on the site that it does not work there is a .htaccess file however ther is no info in there that relates to gzip, it is simply re-write rules.

The odd thing is that when I try to check my site via this Gzip compression test… http://www.seositecheckup.com/html_compression_status.php I get the following message “Oops - it looks like you entered an invalid URL. Please check your syntax and try again.”
I then renamed my index.php and used a blank index.php with a the content “hello world” and using the same checker it worked!

This leads me to think it could be something to do with the code? the site uses .tpl files could this have an effect?

Thanks
Daniel

No the problem isn’t the .tpl files. At this point it could be anything really.
Somebody should take a good look at that code.

Thanks for the reply, I have sent you a PM

Daniel