In web applications, static files are files that are located on the web server and are served to the end user as is, without any manipulation. HTML, CSS, JavaScript, image, font, and video files are all included in the definition of static files.
These files are crucial to SPAs, since the entire frontend code is based on static HTML, CSS, and JavaScript files.
ASP.NET Core defines two types of folders:
By default, the content root is the root folder of the application, and the web root is the <content root>/wwwroot
folder.
Note
The web root
folder is not exposed to the end user by default. Making it available to end users is described later in this chapter, under Setting the server to serve static files.
In large applications, the content root...