none
What was the need to create a separate middle ware for serving static files? RRS feed

  • Question

  • I'v been reading about .net core  for a while when I read about request and middle wares.  I can't seem to wrap my head around the need for app.UseStaticFiles() middle ware because no matter what application we create, we will need to include something or the other static files so there will always be a need to write app.UseStaticFiles() middle ware which doesn't make sense to register every time in our pipeline. So, can anyone clear my doubts here.

    ms forum help


    • Edited by Aniket95 Thursday, March 14, 2019 6:23 PM
    • Moved by Alex Li-MSFT Wednesday, March 20, 2019 1:29 AM
    Thursday, March 14, 2019 6:22 PM

All replies

  • Maybe, you should post to the ASP.NET forums and to the ASP.NET Core forum.

    https://forums.asp.net/

    Thursday, March 14, 2019 9:56 PM