문제

Please help me. Can the puma server use gzip compression? If yes, how can i configure it?

I try to use config/puma.rb file

something like:

gzip on;

but nothing helped.

I use: rails 4.0.0, jruby, puma.

도움이 되었습니까?

해결책

rack deflater will work with puma

add use Rack::Deflater to your config.ru file

Take a look at this question/answer: Where to insert Rack::Deflater in the rack?

다른 팁

I think that you should use Nginx or Apache for gzip compression. You can try this link

Puma will only serve the application. Compression, expiration time and other stuff related to the application files are reverse proxy stuff.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top