【发布时间】:2013-08-28 14:48:34
【问题描述】:
从 IIS6 托管的 ASP.NET MVC 3 应用程序下载文件时,没有为 .exe 文件设置 content-length 标头。
MIME 类型似乎设置正确。 (.exe 是 application/octet-stream)。静态内容压缩已禁用。
据我所知,这个问题是特定于.exe 文件的。 .zip 工作正常。
建议?
更新
这里是正在发送的标题:
Accept-Ranges:bytes
Cache-Control:max-age=86400
Compression-Control:whitespace
Content-Encoding:gzip
Content-Location:http://...../someFile.exe
Content-Type:application/octet-stream
Date:Wed, 28 Aug 2013 15:45:52 GMT
ETag:"5397aeeb6e4ace1:0"
Last-Modified:Mon, 06 May 2013 15:32:30 GMT
Transfer-Encoding:chunked
Vary:Accept-Encoding
【问题讨论】:
标签: asp.net http-headers iis-6