Topic
MVC File Action Result
1 post about MVC File Action Result by 1 contributor.
Know MVC File Action Result? Share what you know with developers who are learning it.
+ Follow MVC File Action ResultBe the first to follow this
- Articles
- 1
- Contributors
- 1
Everything about MVC File Action Result
- Article · ASP.NET
Cache Headers For MVC File Action Result (ASP.NET Core 2.0 Preview 2)
I’m pretty sure that you are familiar with StaticFiles middleware of the framework. All it does is serve static files (CSS, JavaScript, image, etc.) from a predefined/configurable file location (typically from inside the web root, i.e., wwwroot folder). But along the way, it also does some cache headers configuration. The reason behind this is you don’t want your server to be called up every time for a file that doesn’t change frequently. Let’s see how a request for a static file looks in the browser’s network tab.


