Maximum MIME type length when storing the type in a database

According to RFC 4288 “Media Type Specifications and Registration Procedures”, type (eg. “application”) and subtype (eg “vnd…”) both can be max 127 characters. So including the slash, the maximum length is 255. Edit: Meanwhile, that document has been obsoleted by RFC 6838, which does not alter the maximum size but adds a remark: Also note … Read more

Using plus sign in custom internet media types (MIME types)

The procedure for registering new suffixes is now defined in http://trac.tools.ietf.org/html/draft-ietf-appsawg-media-type-regs-14#section-6. “+json” will be defined in a separate document; right now: http://trac.tools.ietf.org/html/draft-ietf-appsawg-media-type-suffix-regs-02#section-3.1 And no, you are not supposed to have multiple subtypes there.

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”

This error usually happens because you deployment was into a subfolder, so it seems like Angular is fetching you app directly from your base URL, so your html is found when you go to your domain.com/mysubfolder/index.html, but as the Angular fetches your resources from domain.com/index.html instead of domain.com/mysubfolder/index.html; I’m pretty sure this is the cause … Read more

MIME type for a directory

On Ubuntu, a directory mimetype is inode/directory If you run, on Ubuntu: $ mimetype /home/<your username> /home/<your username>: inode/directory There is a “text/directory” in the IANA standards (http://www.rfc-editor.org/rfc/rfc2425.txt and http://www.iana.org/assignments/media-types/text) but it was marked “deprecated”.