GFDRR / open-risk-data-dashboard

Repository for the Open Data for Resilience Index, a website to track and improve the state of Open Data for Resilience worldwide.
https://index.opendri.org
GNU Lesser General Public License v3.0
23 stars 8 forks source link

Enable Django ConditionalGetMiddleware #455

Open thom4parisot opened 5 years ago

thom4parisot commented 5 years ago

Thus, it adds a Content-Length response header.

Ngninx uses Content-Length to decide if yes or no, it compresses the output. With this feature enabled, API responses will be gzipped by Nginx, with the expectation of a quicker time to interaction in pages.


If it's the wrong proposal, then the problem I try to solve is the Content-Length response header is not output in API responses.

pzwsk commented 5 years ago

Hi @nastasi-oq can you have a quick look and approve if ok. Thanks