I understand that the order of registration for middleware may matter. However, it's not given that it's necessarily the case.
I noticed that UseDefaultFiles() needs to precede UseStaticFiles() (which can neatly be circumvented by UseFileServer()).
What I don't understand is why. How do they collide?!
I've googled the issue but got zero motivation on why the order is significant in this particular case. Only that it is of importance...