Skip to content

Commit 24e91d4

Browse files
authored
Disable compression by default in Dash 2 (#1707)
* Change default value of compress to False * Add CHANGELOG entry
1 parent a19c274 commit 24e91d4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [2.0.0] - 2021-??-??
6+
7+
## Dash and Dash Renderer
8+
9+
### Changed
10+
- [#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.
11+
512
## [1.21.0] - 2021-07-09
613

714
## Dash and Dash Renderer

dash/dash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class Dash(object):
197197
:type serve_locally: boolean
198198
199199
:param compress: Use gzip to compress files and data served by Flask.
200-
Default ``True``
200+
Default ``False``
201201
:type compress: boolean
202202
203203
:param meta_tags: html <meta> tags to be added to the index page.
@@ -336,7 +336,7 @@ def __init__(
336336
routes_pathname_prefix=routes_prefix,
337337
requests_pathname_prefix=requests_prefix,
338338
serve_locally=serve_locally,
339-
compress=get_combined_config("compress", compress, True),
339+
compress=get_combined_config("compress", compress, False),
340340
meta_tags=meta_tags or [],
341341
external_scripts=external_scripts or [],
342342
external_stylesheets=external_stylesheets or [],

0 commit comments

Comments
 (0)