Skip to content

Commit a05c1b8

Browse files
committed
add readme
1 parent 646b3d2 commit a05c1b8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Demo
2+
3+
demo for integration nginx http2 server push feature with django
4+
5+
### How to use
6+
7+
> docker-compose up
8+
9+
### NGINX Solution
10+
11+
1. nginx v1.13.9 support server push (see https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/)
12+
2. enable server push in upstream (see dockerfile/nginx/conf/default.conf)
13+
14+
### Django Solution
15+
16+
1. mark resource which need to be server push in template (see applications/demo/templates/index.html)
17+
1. add link header through middleware (see applications/demo/middlewares.py)

0 commit comments

Comments
 (0)