Adding Cache-Control headers to Static Files in ASP.NET Core

added by DotNetKicks
11/1/2016 10:19:16 AM

4 Kicks, 556 Views

Thanks to the ASP.NET Core middleware pipeline, it is relatively simple to add additional HTTP headers to your application by using custom middleware. One common use case for this is to add caching headers. Allowing clients and CDNs to cache your content can have a massive effect on your application's performance.