discourse/app
David Taylor 011c9b9973
DEV: Use message-bus chunked encoding in development (#19878)
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
2023-01-17 09:54:33 +00:00
..
assets DEV: Use message-bus chunked encoding in development (#19878) 2023-01-17 09:54:33 +00:00
controllers PERF: N+1 queries when viewing tags (#19891) 2023-01-17 15:50:21 +08:00
helpers FEATURE: Show more context in Discourse topic oneboxes 2023-01-11 14:22:53 +01:00
jobs DEV: extract anniversary badge query (#19716) 2023-01-16 11:55:00 +01:00
mailers DEV: Apply syntax_tree formatting to `app/*` 2023-01-09 14:14:59 +00:00
models PERF: N+1 queries when viewing tags (#19891) 2023-01-17 15:50:21 +08:00
serializers FIX: Preload user sidebar attrs when `?enable_sidebar=1` (#19843) 2023-01-13 06:47:58 +08:00
services DEV: Remove defunct TODOs (#19825) 2023-01-12 09:41:39 +10:00
views FEATURE: Show more context in Discourse topic oneboxes 2023-01-11 14:22:53 +01:00