cobrateam / django-htmlmin

HTML minifier for Python frameworks (not only Django, despite the name).
http://pypi.python.org/pypi/django-htmlmin
BSD 2-Clause "Simplified" License
542 stars 73 forks source link

error with gzip on nginx #114

Closed vladimirmyshkovski closed 5 years ago

vladimirmyshkovski commented 7 years ago

If I try add gzip on in nginx.conf, PageSpeed Insights return

The server closed the connection before sending a full response. Ensure that the page loads in a browser and try again

andrewsmedina commented 7 years ago

We need to know why this happen

vladimirmyshkovski commented 7 years ago

This happens when the gzip is enabled in nginx.conf

andrewsmedina commented 7 years ago

what version of Django are you using?

vladimirmyshkovski commented 7 years ago

I use htmlmin in two django projects with versions 1.10 and 1.11.1

mkhndrsn commented 7 years ago

Hi we had this same issue on 1.11. Was this ever resolved?

andrewsmedina commented 5 years ago

The support for django 1.11+ that fixes this bug was released in htmlmin 0.11