From abfd9a81e18699355c79edaac81ecd73d2ff2806 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Thu, 12 Aug 2021 13:10:28 -0400 Subject: [PATCH 1/3] Change default value of compress to False --- dash/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/dash.py b/dash/dash.py index 73b150ee90..832f305d91 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -336,7 +336,7 @@ def __init__( routes_pathname_prefix=routes_prefix, requests_pathname_prefix=requests_prefix, serve_locally=serve_locally, - compress=get_combined_config("compress", compress, True), + compress=get_combined_config("compress", compress, False), meta_tags=meta_tags or [], external_scripts=external_scripts or [], external_stylesheets=external_stylesheets or [], From 33ff40a5aab3f2003355522236d6cf4cb9cf5286 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 16 Aug 2021 11:26:37 -0400 Subject: [PATCH 2/3] Update default value in compress docstring --- dash/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/dash.py b/dash/dash.py index 832f305d91..43c6d02fab 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -197,7 +197,7 @@ class Dash(object): :type serve_locally: boolean :param compress: Use gzip to compress files and data served by Flask. - Default ``True`` + Default ``False`` :type compress: boolean :param meta_tags: html tags to be added to the index page. From 6c7ad0d6e6fd13a1e2c6e83b89efe1cb0e1a9bd3 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 16 Aug 2021 11:44:15 -0400 Subject: [PATCH 3/3] Add CHANGELOG entry --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c0abbcf6..97f1c471a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to `dash` will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). +## [2.0.0] - 2021-??-?? + +## Dash and Dash Renderer + +### Changed +- [#1707](https://github.com/plotly/dash/pull/1707) Change the default value of the `compress` argument to the `dash.Dash` constructor to `False`. This change reduces CPU usage, and was made in recognition of the fact that many deployment platforms (e.g. Dash Enterprise) already apply their own compression. If deploying to an environment that does not already provide compression, the Dash 1 behavior may be restored by adding `compress=True` to the `dash.Dash` constructor. + ## [1.21.0] - 2021-07-09 ## Dash and Dash Renderer