Byte-Range Caching
location / {
slice 1m;
proxy_cache cache;
proxy_cache_key $uri$is_args$args$slice_range;
proxy_set_header Range $slice_range;
proxy_cache_valid 200 206 1h;
proxy_pass http://localhost:8000;
}
change to uwsgi:
location / {
slice 1m;
uwsgi_cache cache;
uwsgi_cache_key $uri$is_args$args$slice_range;
uwsgi_cache_max_range_offset $slice_range;
uwsgi_cache_valid 200 206 1h;
uwsgi_pass unix:/tmp/uwsgi.socket;
}
nginx return progress bar:
django upload chunked large file: