Skip to content

Commit

Permalink
Disable compression by default in Dash 2 (#1707)
Browse files Browse the repository at this point in the history
* Change default value of compress to False
* Add CHANGELOG entry
  • Loading branch information
jonmmease authored Aug 16, 2021
1 parent a19c274 commit 24e91d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <meta> tags to be added to the index page.
Expand Down Expand Up @@ -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 [],
Expand Down

0 comments on commit 24e91d4

Please # to comment.