# Discourse not using brotli or gzip compression?

**URL:** <https://meta.discourse.org/t/discourse-not-using-brotli-or-gzip-compression/130874>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [October 12, 2019, 11:39pm UTC](https://meta.discourse.org/t/discourse-not-using-brotli-or-gzip-compression/130874 "2019-10-12T23:39:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [October 14, 2019, 10:50pm UTC](https://meta.discourse.org/t/discourse-not-using-brotli-or-gzip-compression/130874/7 "2019-10-14T22:50:19Z")

</div>

Thanks to @Arkshine my issue was fixed.

I had to comment theses lines in `/etc/nginx/proxy.inc`:

```plaintext
proxy_hide_header Vary;

```

```plaintext
proxy_set_header Accept-Encoding '';

```

The server now sends the files properly compressed by Discourse:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/b/3beb2ce00e648f5fe2a8966a0c519bacc46930ce.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-not-using-brotli-or-gzip-compression/130874)._
