Wikibase Entity compression issues are occurring in a freshly installed minimal development environment, which causes browser tests to fail as well as disables users from adding Statements to Items.
**Steps to reproduce:**
1. Create a new local MediaWiki dev env, by following described in [MediaWiki-Docker](https://www.mediawiki.org/wiki/MediaWiki-Docker) > Quickstart and [DEVELOPERS.md](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md).
# Clone and install the Wikibase extension according to instructions in [Wikibase/Installation](https://www.mediawiki.org/wiki/Wikibase/Installation) up until the end of the //"Run maintenance scripts"// section.
NOTE: Make sure to follow the instructions for both repo and client, so that at the end of the process the only lines in you `LocalSettings.php` apart from the auto-generated lines from the mediawiki installation process are the ones below.
```lang=php,name=LocalSettings.php
// Autogenerated code ...
wfLoadSkin( 'Vector' );
wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" );
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
```
3. Go to `Special:NewItem` in your local wiki and add an item to test on
# Go to `Special:EntityData/Q1.json`.
**Current behaviors:**
Returned entity data is compressed and unreadable (unparseable). This breaks the Wikibase Item UI (users are not able to add statements) and consequently the browser tests fail when run locally.
{F34443783}
**Expected behavior:**
Entity data is returned either with proper `content-encoding` header or in json, so that the browser is able to parse the response body.
{F34443793}
**Hints:**
* Installing [fresh-node](https://github.com/wikimedia/fresh) in order to run browser tests, and run the following commands from the mediawiki root to reproduce the error with the Wikibase browser tests without worrying about browser version etc. The test should pass when the Entity data is correctly encoded.
```name=Terminal
$ fresh-node -env -net
$ cd extensions/Wikibase
$ npm ci
$ npm run selenium-test:repo -- --spec repo/tests/selenium/specs/item.js
```