reddec / trusted-cgi

Lightweight runner for lambda functions/apps in CGI like mode
https://trusted-cgi.reddec.net
MIT License
218 stars 16 forks source link

Content types for various types of files in static #29

Open the-glu opened 3 months ago

the-glu commented 3 months ago

Hello,

It would be great to have dynamic content types for files in static. E.g. if a small CSS is needed for a project, it's doesn't work because (at least Firefox) refuse to use CSS that have the wrong content type.

Some basic rules (for css, js and images) should be enough, but more advanced options like per-extention header or automatic mime type detection would do the job :)

Thanks a lot and have a nice daym