Only insert dragonfly middlewares after Rack::Cache when it is defined