-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Why is the MIME configuration for .md files not automatically included? #63182
-
Why is the MIME type configuration for .md files not included by default in the web.config of IIS, and can you configure this so that you don't have to manually adjust it every time after publishing?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
not included by default in the web.config of IIS
Why it's not included in IIS I don't know (maybe when IIS was (first) made, .md files didn't exist?).
For ASP.NET Core see
aspnetcore/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs
Lines 13 to 16 in d72b3c2
configure this so that you don't have to manually adjust it every time after publishing
Do you mean Prevent web.config transformation?
Beta Was this translation helpful? Give feedback.
All reactions
-
I have a .md file in the wwwroot which can be called up during development and cannot be found in the IIS after publishing although it is there.
Beta Was this translation helpful? Give feedback.
All reactions
-
I have not configured anything to prevent this. I always publish from the solution.
Beta Was this translation helpful? Give feedback.