I use BITS to query an ASP.NET MVC controller named Source, which returns a FileResult. I know that the FilePathResult type uses HttpResponse.TransmitFile, but I donβt know if HttpResponse.TransmitFile really writes the file to the response stream, regardless of the type of request.
My question is, does FileResult only contain header information about HEAD requests or does it transfer the file regardless of request type? Or should I respond to HEAD requests myself?
source share