asset.gzip机架::放气机

时间:2018-08-14 18:21:00

标签: ruby-on-rails-3 gzip asset-pipeline deflate

我正在尝试对我的应用程序实施压缩。与启用中间件for(int i = 1; i <= 6; i++) System.out.println(lexicographicPermutation("110", i)); 1 - 110 2 - 101 3 - 110 4 - 101 5 - 011 6 - 011 for(int i = 1; i <= 6; i++) System.out.println(lexicographicPermutation("abc", i)); 1 - abc 2 - acb 3 - bac 4 - bca 5 - cab 6 - cba config.middleware.use Rack::Deflater相比,在config.middleware.insert_before ActionDispatch::Static, Rack::Deflater中实现中间件有何不同 config/application.rb中的config.assets.gzip = true吗?

参考:

https://robots.thoughtbot.com/content-compression-with-rack-deflater#rails-3-and-4 https://guides.rubyonrails.org/asset_pipeline.html#serving-gzipped-version-of-assets

0 个答案:

没有答案