Serving static content from cookie less domain and mod_deflate

Posted by Saif Bechan on Server Fault See other posts from Server Fault or by Saif Bechan
Published on 2010-03-22T00:18:07Z Indexed on 2010/03/22 0:21 UTC
Read the original article Hit count: 707

Filed under:
|
|
|

I have two domain. One domain with my main website and the other with js/css/etc.. files, static content.

mod_deflate is enabled for both domains, but when i run ySlow in FireFox it says none of my static content is compressed. When i bring back the js or css file to my normal domain it gets compressed right. Only when its served from the other domain is it not compressed.

Do i have to do some more configuration for this to work?

I am using this line in my .htaccess file

AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml text/plain application/x-httpd-php

I tried to but the line in my httpd.conf file but it gives me the same results.

PS. If this is more of a serverfault question i am sorry for this. But i see a lot of questions here concerning mod_deflate and ySlow

© Server Fault or respective owner

Serving static content from cookie less domain and mod_deflate

Posted by Saif Bechan on Stack Overflow See other posts from Stack Overflow or by Saif Bechan
Published on 2010-03-22T00:16:59Z Indexed on 2010/03/22 0:21 UTC
Read the original article Hit count: 707

Filed under:
|
|
|

I have two domain. One domain with my main website and the other with js/css/etc.. files, static content.

mod_deflate is enabled for both domains, but when i run ySlow in FireFox it says none of my static content is compressed. When i bring back the js or css file to my normal domain it gets compressed right. Only when its served from the other domain is it not compressed.

Do i have to do some more configuration for this to work?

I am using this line in my .htaccess file

AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml text/plain application/x-httpd-php

I tried to but the line in my httpd.conf file but it gives me the same results.

PS. If this is more of a serverfault question i am sorry for this. But i see a lot of questions here concerning mod_deflate and ySlow

© Stack Overflow or respective owner

Related posts about mod-deflate

Related posts about css