RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to restore support for Nginx’s gzip_static in Rails 4.2

Nginx has the ability to serve static .gz files instead of compressing assets on the fly, which is great for performance. The Rails asset pipeline has supported this feature in the past, but unfortunately, this support is currently missing in Rails 4.2 and Sprockets 3. The Rails team is aware of the problem and has promised a fix, but in the meantime, here’s a workaround to restore this great feature.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in