Which of the following middleware components is responsible for serving static files in an ASP.NET Core application?

  • StaticFileMiddleware
  • AuthenticationMiddleware
  • RoutingMiddleware
  • ExceptionHandlingMiddleware
StaticFileMiddleware is responsible for serving static files like HTML, CSS, JavaScript, and images in an ASP.NET Core application. It helps enhance the performance of web applications by directly serving these files without invoking the application's logic.
Add your answer
Loading...

Leave a comment

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