DEV: Don't use chunked encoding in development mode (#13768)
The express server and http-proxy seem to buffer quite a bit and that slows down message bus.
This commit is contained in:
parent
ec9a2a04f3
commit
6d999fb087
|
@ -86,7 +86,8 @@ export default {
|
|||
messageBus.baseUrl =
|
||||
siteSettings.long_polling_base_url.replace(/\/$/, "") + "/";
|
||||
|
||||
messageBus.enableChunkedEncoding = siteSettings.enable_chunked_encoding;
|
||||
messageBus.enableChunkedEncoding =
|
||||
isProduction() && siteSettings.enable_chunked_encoding;
|
||||
|
||||
if (messageBus.baseUrl !== "/") {
|
||||
messageBus.ajax = function (opts) {
|
||||
|
|
Loading…
Reference in New Issue