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:
Robin Ward 2021-07-18 21:31:22 -04:00 committed by GitHub
parent ec9a2a04f3
commit 6d999fb087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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) {