Brotli and gzip encode responses
This commit is contained in:
parent
6599246439
commit
922a982f09
2 changed files with 3 additions and 0 deletions
|
@ -5,3 +5,4 @@ brotli==1.0.7
|
||||||
django-environ==0.4.5
|
django-environ==0.4.5
|
||||||
gunicorn ==20.0.4
|
gunicorn ==20.0.4
|
||||||
django-sri==0.2.0
|
django-sri==0.2.0
|
||||||
|
django-brotli==0.2.0
|
||||||
|
|
|
@ -46,6 +46,8 @@ INSTALLED_APPS = [
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"django.middleware.security.SecurityMiddleware",
|
"django.middleware.security.SecurityMiddleware",
|
||||||
"whitenoise.middleware.WhiteNoiseMiddleware",
|
"whitenoise.middleware.WhiteNoiseMiddleware",
|
||||||
|
"django_brotli.middleware.BrotliMiddleware",
|
||||||
|
"django.middleware.gzip.GZipMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware",
|
||||||
"django.middleware.csrf.CsrfViewMiddleware",
|
"django.middleware.csrf.CsrfViewMiddleware",
|
||||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||||
|
|
Reference in a new issue