Where to insert Rack::Deflater in the rack?

前端 未结 3 1845
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 06:50

I currently have the following:

use Rack::Rewrite
use Rack::Cache, {:verbose=>true, :metastore=>\"memcached://localhost:11211/rack-cache/meta\", :entitysto         


        
3条回答
  •  忘了有多久
    2021-02-04 07:33

    In response to Maletor, for how to exclude certain files from being gzip'd, see:

    http://icelab.com.au/articles/wrapping-rack-middleware-to-exclude-certain-urls-for-rails-streaming-responses/

    tried it (in Sinatra) and works great.

提交回复
热议问题