Skip to content

DistPub/nginx-http2-django-server-push

Repository files navigation

Demo

demo for integration nginx http2 server push feature with django

demo

How to use

docker-compose up

NGINX Solution

  1. nginx v1.13.9 support server push (see https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/)
  2. enable server push in upstream (see dockerfile/nginx/conf/default.conf)

Django Solution

  1. mark resource which need to be server push in template (see applications/demo/templates/index.html)
  2. add link header through middleware (see applications/demo/middlewares.py)

About

demo for integration nginx http2 server push feature with django

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy