mod_gzip fix for css not loading

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

mod_gzip fix for css not loading

Post 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
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

Re: mod_gzip fix for css not loading

Post by miss_d_bus »

Does anyone know anything about this?
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: mod_gzip fix for css not loading

Post by petert »

Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

Re: mod_gzip fix for css not loading

Post 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.
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: mod_gzip fix for css not loading

Post by petert »

http://httpd.apache.org/docs/2.0/mod/mo ... ecommended

if allow_override is on for your .htaccess then it should work
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

Re: mod_gzip fix for css not loading

Post 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...
Last edited by miss_d_bus on Fri May 19, 2006 1:22 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”