i am facing a strange issue with fresh and updated installtion of aa panel.
i want to force mp4 file download in the browser , instead of playing or executing in browser .
in one browser it works in other it doesn't
i have added this configration.
# Force files in /scripts to download instead of display!
location ~ ^/download/(?P<request_basename>[^/]+)$ {
add_header Content-Disposition "attachment; filename=$request_basename";
}
i have also try this one
location ~ .*\.(mp4)$
{
add_header Content-disposition "attachment; filename=$1";
}
some time it works in all browsers, and some time some browsers starts playing the video why this rule doesn't work all the time ?