Static Files

noun

say it: “STAT-ik fylez” /ˈstætɪk faɪlz/

Files such as images, CSS and JavaScript that a web app sends to the browser exactly as they are.

What is Static Files?

Static files (HTML, CSS, images) in wwwroot are served as-is once you add the static files middleware.

app.UseStaticFiles();   // or app.MapStaticAssets() in newer templates

In a sentence

  • “The logo and site.css are static files in wwwroot.”

Level: Apprentice · More ASP.NET Core terms at this level

Updated