WebEssentials.AspNetCore.StaticFilesWithCache by Mads Kristensen

<PackageReference Include="WebEssentials.AspNetCore.StaticFilesWithCache" Version="1.0.3" />

 ApplicationBuilderExtension

public static class ApplicationBuilderExtension
Extension methods for the IApplicationBuilder.

Enables static files serving with the default cache expiration of 1 year.

Enables static files with custom content type provider, serving with the default cache expiration of 1 year.

Enables static files serving with the specified expiration.