Could we add that to our httpd.conf? It can't be set in .htaccess. This will automatically gzip css and js files. This is part of Yslow optimization effort for groups.drupal.org. Thanks.

Comments

nnewton’s picture

Assigned: Unassigned » nnewton

Assigning this to me. I don't see any real issues with this, but I'll need to check how it interacts with squid.

nnewton’s picture

Ya, I'm fine with this. Will you be around tomorrow? I can put this in place, but when I do I'd like to be sure someone who has experience with the gdo codebase is around to track down any unforeseen issues that might crop up. (I'm not expecting any)

nnewton’s picture

Status: Active » Fixed

This is added now.

aclight’s picture

For the record, I found that I had to use application/x-javascript instead of application/javascript to actually get javascript files on my server to be served compressed. This is apache 2.2 on Ubuntu.

However, it looks like js on groups.drupal.org is being gzipped right now, so maybe this is a slight configuration difference.

mfb’s picture

It depends what mimetype your apache is configured to use for .js files. application/javascript is "correct" (rfc 4329) but a lot of sites are still using application/x-javascript.

moshe weitzman’s picture

We had to ad application/x-javascript for groups.drupal.org as well.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Component: Webserver » Servers