Normally, Content-Type is detected automatically for static files by sniffing the content, but this is not always possible. If you encounter responses with the wrong Content-Type or are serving content other than static files, you can use this middleware to set the right Content-Type.
- ext is the file extension to match, including the dot prefix.
If you have a lot of MIME types to set, open a block:
Each line defines a MIME extension-type pair. You can have as many lines as you need in a mime block.
Customize the Content-Type of Flash files:
Join us in the , where the open source community gathers to share their knowledge.
Purchase a commercial license to use Caddy with your business and for basic email support, along with other benefits!