Edit by @Rick-Anderson to change bullets to check boxes
Description
I see that the Static files in ASP.NET Core doc has been updated for the new optimized static web assets support in .NET 9, but I think we need to do a bit more cleanup for the upcoming .NET 9 release.
Some feedback on the doc as it stands:
@javiercn @mkArtakMSFT @Rick-Anderson @guardrex
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/static-files.md
Document ID
3fec6e08-fc99-7a5c-796f-3f2347cad891
Article author
@Rick-Anderson
Related Issues
Associated WorkItem - 350926
Edit by @Rick-Anderson to change bullets to check boxes
Description
I see that the Static files in ASP.NET Core doc has been updated for the new optimized static web assets support in .NET 9, but I think we need to do a bit more cleanup for the upcoming .NET 9 release.
Some feedback on the doc as it stands:
MapStaticAssetsis a middleware”, but I believe that’s incorrect.MapStaticAssetsplugs into endpoint routing, right? It’s the olderUseStaticFilesthat adds a middleware.MapStaticAssetsvsUseStaticFiles, but I think we actually want the link to go the other way. The What’s new docs can link to specific articles for more details, but specific articles really shouldn’t link to What’s new. EDIT search for MapStaticAssets provides the following benefits not found with UseStaticFilesMapStaticAssets, but then in switches back somewhat abruptly to older content based onUseStaticFiles. I think we want to lead with content based onMapStaticAssetsin one cohesive section and then document the olderUseStaticFilessupport later on in its own section or maybe even in a separate article. Note that both are still supported, so we need to document both.MapStaticAssetsis called beforeUseAuthorization, but I believe that’s incorrect. It was true forUseStaticFiles, but not forMapStaticAssets. We probably need two versions of this section: one forMapStaticAssetsand one forUseStaticFiles.@javiercn @mkArtakMSFT @Rick-Anderson @guardrex
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/static-files.md
Document ID
3fec6e08-fc99-7a5c-796f-3f2347cad891
Article author
@Rick-Anderson
Related Issues
Associated WorkItem - 350926