mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08:00
011c9b9973
This was previously disabled because of incompatibility with the ember-cli proxy. This commit fixes that incompatibility, and restores the development behaviour to match production. There were three issues at play: 1. Our bootstrap-js addon handles the forwarding of most requests in the ember-cli proxy. This is not built to handle streaming responses. Solution: skip our custom request processing for `/message-bus/*` and use ember-cli's default `http-proxy`. 2. The request/response size-limiting middleware (`rawMiddleware`) would apply even to unhandled paths, causing request and response bodies to be buffered. Solution: skip it for any paths which are not handled by our custom addon. 3. Expressjs servers will buffer/compress responses. Solution: add `Cache-Control: no-transform` to message-bus responses. For now I've done this in development only, but it may be useful to add it to message-bus's default headers in future |
||
---|---|---|
.. | ||
001-redis.rb | ||
002-freedom_patches.rb | ||
002-rails_failover.rb | ||
004-message_bus.rb | ||
005-site_settings.rb | ||
006-ensure_login_hint.rb | ||
006-mini_profiler.rb | ||
008-rack-cors.rb | ||
009-omniauth.rb | ||
012-web_hook_events.rb | ||
013-excon_defaults.rb | ||
014-track-setting-changes.rb | ||
099-anon-cache.rb | ||
099-drain_pool.rb | ||
100-i18n.rb | ||
100-logster.rb | ||
100-oj.rb | ||
100-onebox_options.rb | ||
100-push-notifications.rb | ||
100-quiet_logger.rb | ||
100-secret_token.rb | ||
100-session_store.rb | ||
100-sidekiq.rb | ||
100-silence_logger.rb | ||
100-strong_parameters.rb | ||
100-verify_config.rb | ||
100-wrap_parameters.rb | ||
101-lograge.rb | ||
200-first_middlewares.rb | ||
300-perf.rb | ||
400-deprecations.rb | ||
000-development_reload_warnings.rb | ||
000-mini_sql.rb | ||
000-post_migration.rb | ||
000-trace_pg_connections.rb | ||
000-zeitwerk.rb | ||
assets.rb | ||
filter_parameter_logging.rb | ||
new_framework_defaults_7_0.rb |