Page 1 of 1

mod_gzip fix for css not loading

Posted: Tue May 16, 2006 5:27 pm
by miss_d_bus
The old problem of the CSS not loading in the CMS under IE 6 and Win XP SP2 is causing me a problem. I fixed the problem by adding the following into the .htaccess file:

mod_gzip_item_exclude mime ^text/css

This worked well and cured the problems except with one server. It turns out that fix only works with Apache 1.3 and not Apache 2.
I was told by the hosting company that I shouldnt be using mod_gzip for this with Apache 2 but rather mod_deflate so there isnt a 500 Internal error coming up.
Anyone know the correct formatting of the fix since it isnt as simple as changing gzip to deflate as that doesnt work. I havent been able to find any documentation thats clear about this either.

Thanks

Re: mod_gzip fix for css not loading

Posted: Fri May 19, 2006 6:45 am
by miss_d_bus
Does anyone know anything about this?

Re: mod_gzip fix for css not loading

Posted: Fri May 19, 2006 7:15 am
by petert

Re: mod_gzip fix for css not loading

Posted: Fri May 19, 2006 7:34 am
by miss_d_bus
Thanks, but I dont have access to the Apache config file so the only way to use this would be through the .htaccess file.

I see this:
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

but it isnt as simple as putting:
SetEnvIfNoCase Request_URI \.css$ no-gzip dont-vary

into the .htacceess file or is it?!!

Thats where I perhaps am going wrong.

Re: mod_gzip fix for css not loading

Posted: Fri May 19, 2006 7:39 am
by petert
http://httpd.apache.org/docs/2.0/mod/mo ... ecommended

if allow_override is on for your .htaccess then it should work

Re: mod_gzip fix for css not loading

Posted: Fri May 19, 2006 1:10 pm
by miss_d_bus
Thanks for the assistance, so far it looks like it works on Apache 2 using the following:

SetEnvIfNoCase Request_URI \
\.(?:css)$ no-gzip dont-vary


*edit* second time round browsing in the admin area, its even worse and the CSS isnt loading at all practically! Ermm...