Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
nnewton CreditAttribution: nnewton commentedAssigning this to me. I don't see any real issues with this, but I'll need to check how it interacts with squid.
Comment #2
nnewton CreditAttribution: nnewton commentedYa, 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)
Comment #3
nnewton CreditAttribution: nnewton commentedThis is added now.
Comment #4
aclight CreditAttribution: aclight commentedFor 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.
Comment #5
mfbIt 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.
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedWe had to ad application/x-javascript for groups.drupal.org as well.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.