The pourpose of this configuration file is to associate file extensions with its common MIME type.
The default path to this file is: /etc/cherokee/mime.conf, but it you are using a precompiled Cherokee package it might be different.
Contents |
This entry associate the most common JPEG extension to its MIME type.
image/jpeg jpeg jpg jpe
Besides the mime definition file, it is possible to define extra information and mime types in Cherokee configuration file using the MimeType keyword. It is also possible to associate an expiration time with each Mime type in order to let the proxy caches how long that content should be cached.
This entry set the expiration time in caches of html pages to one hour.
MimeType text/html { max-age 3600 }
It is also possible to added new suffixes. For example, this adds the "lmth" and "mth" extensions to the mime type "text/html":
text/html { suffixes lmth, mth }