-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
9.0.NET 9.NET 9aspnet-core/svcfundamentals/subsvcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.
Description
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:
- The doc says “
MapStaticAssetsis a middleware”, but I believe that’s incorrect.MapStaticAssetsplugs into endpoint routing, right? It’s the olderUseStaticFilesthat adds a middleware. - The Static files doc currently links back to the What’s new doc for the comparison of
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 UseStaticFiles - The Static files doc starts out talking about
MapStaticAssets, 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. - The section on Static files authorization says
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. - The Blazor docs have their own Static files topic, which also covers a lot of the fundamentals of static files that really apply to any ASP.NET Core app that uses static files. I think we want to elevate as much of this content as possible to ASP.NET Core static files topic and focus the Blazor article and Blazor specific concerns for static files.
@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
Kebechet
Metadata
Metadata
Assignees
Labels
9.0.NET 9.NET 9aspnet-core/svcfundamentals/subsvcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.