This section describes HTTP response header lines generated by IIS server for static files based their file name extensions.
Static files can be served directly by IIS server, if you copy files to
\inetpub\wwwroot, IIS will set "Content-Type"
header line based on the file name extension and the MIME settings of the server
configuration. Let's look at 3 commonly used file name extensions.
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Sat, 28 Dec 2002 03:14:22 GMT
Content-Type: image/gif
Accept-Ranges: bytes
Last-Modified: Sun, 11 Aug 2002 21:48:20 GMT
ETag: "0aafb4ddc43c21:903"
Content-Length: 43
GIF89a......
As you can see, Content-Type was set correctly to "image/gif" for file name extension
"gif", as defined in the MIME settings. I could not included the entity body here because
it contains binary data.
Again, Content-Type was set correctly to "application/pdf" for file name extension
"pdf", as defined in the MIME settings. I truncated the entity body to save some space.