A simple way to add Header LINK
pip install django_http2_push
Update your settings.py
INSTALLED_APPS = [
...
"django_http2_push",
...
]
MIDDLEWARE = [
...
"django_http2_push.middleware.PushHttp2Middleware",
...
]
In the templates now use static_push
instead of staticfiles
.