Allow overriding of content types in static routes
Use case
Express’s static server guesses mime/content types based on file names. It doesn’t always get it right.
For example, Site.js’s own installation script is stored in a file called install
which Express serves as application/x-install-instructions
instead of as text/plain
.
Suggested implementation
Integrate express-content-type-override module and have a special file that content type overrides can be declared in. e.g., .content-types.