In ASP.NET Core, which middleware is used to serve static files?

  • StaticFileMiddleware
  • AuthenticationMiddleware
  • DatabaseMiddleware
  • RoutingMiddleware
In ASP.NET Core, the StaticFileMiddleware is used to serve static files such as CSS, JavaScript, images, and other client-side assets. It's a crucial part of building web applications as it ensures that these files are accessible to the client's web browser.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *