出現在Response header,預設行為是display inline
,若設定為attachment
則通常會跳出另存新檔視窗方便下載。
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 6919
Content-Type: application/zip
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Content-Disposition: attachment; filename=104%A8M%BA%E2XML.zip
X-Powered-By: ASP.NET
Date: Tue, 20 Dec 2016 15:42:14 GMT
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 3097810
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 20 Dec 2016 15:57:34 GMT