Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

asp.net middelware for Kestrel to serve precompressed static files

License

Notifications You must be signed in to change notification settings

oocx/CompressedStaticFiles

Open more actions menu
 
 

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%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.