static file middleware
ASP.NET Core middleware that serves files such as images and scripts straight from disk and short-circuits the request.
In more detail
By default it serves files from the wwwroot folder. Because it finishes early, requests for files never reach your endpoints.
Related terms
- middleware — Code that sits between an incoming request and the handler that answers it, doing a shared job such as logging, authentication or rate limiting.
- short-circuiting — A middleware ending a request by writing the response itself instead of calling the next component.
Taught in
- The ASP.NET Core Middleware Pipeline — Modern .NET Core, C# & Enterprise Microservices