Is there any way to disable resume download in nginx server? I want to stop resume download capability in from URL example.com/media/
but I have no idea how to do that. Also I've searched through internet but I couldn't find anything related to nginx. Is it a server config? Or I should do something else? This is my server config:
# sites-avalaible/default
server {
listen 80;
listen 443 ssl;
server_name www.example.com example.com;
ssl_certificate /var/www/example/ssl/ssl.crt;
ssl_certificate_key /var/www/example/ssl/ssl.key;
location /static {
alias /var/www/example/static;
expires 7d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location /media {
alias /var/www/example/media;
# limit download speed after 5mb download
limit_rate_after 5m;
limit_rate 120k;
limit_req zone=lh burst=5 nodelay;
}
location / {
proxy_pass http://127.0.0.1:8000;
}
}
Take a look at max_ranges parameter.
Set
max_ranges
to0
in whatever context you find appropriate.