Forum: Rails deployment css and js gzip Compression

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7dc6183602c65b027a7ef7dd78c62a36?d=identicon&s=25 Franz M. (xinu)
on 2009-11-15 12:16
hi.

I use apache with passenger and I want to enable the gzip Compression.

I use the apache sample configuration
http://httpd.apache.org/docs/2.0/mod/mod_deflate.html with following
filters
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
text/javascript

The compression works fine if I include the .js or .css files in this
way.
<script src="/javascripts/effects.js" type="text/javascript"></script>

But if I use the javascript_include_tag or the stylesheet_link_tag the
compression doesn't work.
<script src="/javascripts/effects.js?1241801841"
type="text/javascript"></script>

Why does this not work?

thanks,
Michael
This topic is locked and can not be replied to.