chickadee » spiffy » mime-type-map

mime-type-map #!optional extension->mimetype-listparameter

An alist of extensions (strings) to mime-types (symbols), to use for the content-type header when serving up a static file. Defaults to

 '(("html" . #(text/html ((charset . utf-8))))
   ("xhtml" . #(application/xhtml+xml ((charset . utf-8))))
   ("js"  . #(application/javascript ((charset . utf-8))))
   ("css" . #(text/css ((charset . utf-8))))
   ("png" . image/png)
   ("xml" . #(application/xml ((charset . utf-8))))
   ("pdf" . application/pdf)
   ("jpeg" . image/jpeg)
   ("jpg" . image/jpeg)
   ("gif" . image/gif)
   ("ico" . image/vnd.microsoft.icon)
   ("svg" . #(image/svg+xml ((charset . utf-8))))
   ("txt" . #(text/plain ((charset . utf-8)))))

See also file-extension->mime-type for a procedure which can look up file extensions for you.