Expand the list of Undertow allowed extensions

I saw an earlier thread from 4 years ago about adding custom extensions to the Undertow config.

However, should the list be reviewed periodically?

Specifically, I was thinking of the .avif image type, which is growing in popularity. It seems that this probably should be added to the default allowed extensions (along with its associated mime-type, “image/avif”).

The core MIME types Undertow knows about are here: undertow/core/src/main/java/io/undertow/util/MimeMappings.java at main · undertow-io/undertow · GitHub

We can put in a ticket for Undertow to add avif but they tend to take a while to add stuff.

In the past, I’ve added additional ones here in Runwar: runwar/src/main/java/runwar/undertow/SiteDeployment.java at develop · Ortus-Solutions/runwar · GitHub

And, of course, you can register whatever ones you want ad-hoc via a custom web.xml or this setting: MIME Types | CommandBox : CLI, Package Manager, REPL & More