My website has download functionality. When I download any file from it, the browser shows speed around 250 KBPS. whereas if I download from some other website and look at the speed, it is around 900 to 1200 KBPS. I have tested my application in multiple servers and it gives relatively less downloading speed.
Following is the sample code that I use for downloading to client.
public FileResult Download()
{
//Code to form the file path.
return File(filePath, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);
}
I have also tried sending the file as chunks in my response and the speed is still the same.
What is the reason for such a difference in downloading speed? Is there anything that I can check in my Web.config or IIS settings?