[nginx] Update mime-types
Lafiel
lafiel at elven.pw
Mon Aug 25 19:30:42 UTC 2025
Hello!
Maxim Dounin писал(а) 2025-07-28 13:54:
> Hello!
>
> Does it make sense to use these extensions nowadays?
>
> If yes, how the consumers of these formats will react to the
> change - that is, is the "application/vnd.palm" type actually
> supported, or it's just a planned change which never happened in
> practice?
>
> Note that Apache uses "application/x-mobipocket-ebook" for "prc"
> (which is a prc-based ebook format), which suggests that
> "application/vnd.palm" might not work well at least for some
> consumers.
>
> If no, should it be removed instead?
>
> Also note that at least one common use of the "pdb" extension is a
> debug data for Microsoft C++ Compiler, and it's actively used in
> practice.
I agree, some types are rarely used now. Then maybe it should be removed?
There are other rarely used types. Example:
$ awk '/^mml,/||/^jad,/||/^wml,/||/^jar,/||/^war,/||/^ear,/||/^hqx,/|| \
/^odg,/||/^odp,/||/^ods,/||/^odt,/||/^wmlc,/||/^wasm,/||/^cco,/|| \
/^jardiff,/||/^jnlp,/||/^sea,/||/^sit,/||/^xpi,/||/^xspf,/|| \
/^ra,/||/^3gp,/||/^asf,/' ~/httparchive_exts.csv
3gp,35,75
wml,11,63
odt,16,23
jar,5,12
wasm,5,9
sea,2,8
xspf,4,7
asf,4,6
odg,2,3
ra,3,3
war,1,1
jnlp,1,1
cco,1,1
hqx,1,1
ods,1,1
> Numbers as I see them suggests that all these extensions are
> rather not used in practice, at least compared to "ts".
>
> Further, I would argue that "tsv" is a common extension for tab
> separated values format, and both Python and Apache map it to
> "text/tab-separated-values".
>
> I would rather refrain from this change.
Maybe then just add the text/tab-separated-values type for .tsv files?
$ awk '/^tsv,/' httparchive_exts.csv
tsv,174,326
> See here about m4v/m4a as discussed earlier in this thread:
>
> https://freenginx.org/pipermail/nginx-devel/2024-April/000141.html
>
> Note well that this patch doesn't remove corresponding
> "video/x-m4v" type with the "m4v" extension, which makes the
> change essentially a nop (apart from producing a warning at
> startup).
Forgot to delete video/x-m4v.
If there were any problems, then Apache would not have added
the `audio/mp4` type for .m4a and mp4a files.
> The numbers suggests that these extensions are not used in
> practice.
>
> And at least "movie" is a way too generic extension seen being
> used with other MIME types, notably "video/x-sgi-movie" in Apache
> and Python.
>
> We probably can consider adding just the "qt", but given the
> numbers I'm not sure it worth the effort.
Apache also has such an extension, I think it's worth adding.
I can fix the patch later.
$ awk '/video\/quicktime/' mime.types
video/quicktime qt mov
> At least Apache still uses "video/x-ms-asf". And the change
> looses details about the purpose of the file format, which might
> be the reason why "video/x-ms-asf" is still used.
>
> Any specific reasons for the change?
According to this recommendation:
https://learn.microsoft.com/en-us/windows/win32/wmformat/file-name-extension-guidelines
asf files should not store audio and video streams.
This format is also rarely used, can it be removed as well?
This also applies to the .wmv extension. Then there will be
no need to add the .wma extension.
> Apache still uses "video/x-msvideo", probably due to the issues
> mentioned above.
>
> Any specific reasons for the change?
There are no specific reasons
--
Best regards,
Lafiel
mailto:lafiel at elven.pw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xFAB0C3D2.asc
Type: application/pgp-keys
Size: 1839 bytes
Desc: not available
URL: <http://freenginx.org/pipermail/nginx-devel/attachments/20250825/af3e5d45/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://freenginx.org/pipermail/nginx-devel/attachments/20250825/af3e5d45/attachment.sig>
More information about the nginx-devel
mailing list