natemcmaster / dotnet-serve

Simple command-line HTTPS server for the .NET Core CLI
https://nuget.org/packages/dotnet-serve/
Apache License 2.0
782 stars 65 forks source link

Compression is not working for dll files #121

Closed albertwoo closed 1 year ago

albertwoo commented 2 years ago

Describe the bug I tried to use this to serve blazor web assembly files, but the compression is only for for css, html etc. But not for dll file.

To Reproduce Steps to reproduce the behavior:

  1. Create a empty blazor wasm project
  2. Publish in release mode
  3. Run dotnet-serve -b under the publish\wwwroot folder

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

image
natemcmaster commented 2 years ago

Feel free to make a pull request to extend the list. https://docs.microsoft.com/en-us/aspnet/core/performance/response-compression?view=aspnetcore-6.0#mime-types