Skip to content

asp.net middelware for Kestrel to serve precompressed static files

License

Notifications You must be signed in to change notification settings

oocx/CompressedStaticFiles

 
 

Repository files navigation

Build status NuGet version GitHub license

Ensure that you are using the Kestrel server without the IIS Integration. Place app.UseCompressedStaticFiles(); before app.UseStaticFiles(); in Startup.Configure().

This will ensure that you application will serve pre compressed gzipped (filename.ext.gz) and brotli (filename.ext.br) compressed files if the browser supports it.

Checkout the example for setup.

This solution is based on @neyromant from the following issue dotnet/aspnetcore#1584 (comment).

About

asp.net middelware for Kestrel to serve precompressed static files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 61.5%
  • PowerShell 16.8%
  • Shell 8.1%
  • HTML 6.2%
  • CSS 4.1%
  • JavaScript 3.3%