Serving static content from cookie less domain and mod_deflate
- by Saif Bechan
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