Posted on 05/03/2023 11:23:05
Me again.
Apparently, the errors were caused by something in the web config.
In the staticContent area, we have some references to file extensions:
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="120.00:00:00" cacheControlCustom="public" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
The .webp extension is handled different than .woff2 and in my setup it probably collided with a preexisting MimeType definition.
Adding
<remove fileExtension=".webp" />
solved the issue.
I am not sure why this line was not added from the beginning.
Maybe it will solve this issue for someone else in the future.
Adrian