BasicMiddleware icon indicating copy to clipboard operation
BasicMiddleware copied to clipboard

Add a Brotli Compression Provider

Open RehanSaeed opened this issue 9 years ago • 16 comments

This great post by Tomasz Pęczek shows how to add Brotli compression today using Brotli.NET which is a .NET wrapper around the native Brotli DLL. ASP.NET Core has made a big deal about performance, this should be a higher priority.

Related issue 'Add a Priority to each Response Compression Provider' would also need to be addressed.

RehanSaeed avatar Mar 21 '17 09:03 RehanSaeed

Might want to use the version in CoreFX Labs for this: https://dotnet.myget.org/feed/dotnet-corefxlab/package/nuget/System.IO.Compression.Brotli

jbayardo avatar Sep 15 '17 13:09 jbayardo

@jkotalik This is not ready yet, but will be once CoreFX packages are in a usable state.

cc @joshfree FYI

muratg avatar Oct 30 '17 18:10 muratg

Yes, this is one of the next things @ianhays will be working on. https://github.com/dotnet/corefx/issues/24826

joshfree avatar Oct 30 '17 19:10 joshfree

https://github.com/dotnet/corefx/issues/24826 was just finished. We can consume this soon. @muratg we still want to target this for 2.1, correct?

jkotalik avatar Jan 20 '18 02:01 jkotalik

@jkotalik possibly, but we'll need to prioritize it with other items.

cc @glennc

muratg avatar Jan 20 '18 02:01 muratg

Out of curiosity, @muratg are you still planning on including brotli support for 2.1 by consuming the CoreFX Brotli library being added in .net core 2.1?

FYI: @joshfree

ianhays avatar Feb 26 '18 22:02 ianhays

@ianhays It's not currently in 2.1 list. cc @DamianEdwards

muratg avatar Feb 26 '18 22:02 muratg

It would be nice if ASP.NET Core exposed this in 2.1 if there's still time.

https://github.com/dotnet/corefx/issues/25785

joshfree avatar Feb 26 '18 23:02 joshfree

I'd love for us to have this in 2.1, but there are other items ahead of it right now and given where we are it seems unlikely we'll get it in.

DamianEdwards avatar Feb 27 '18 00:02 DamianEdwards

@muratg @glennc can you prioritize completing this work for .NET Core 2.2?

joshfree avatar May 17 '18 22:05 joshfree

@joshfree I don't think anything changed since @DamianEdwards's comment. He owns the priorities.

muratg avatar May 18 '18 00:05 muratg

This should be a quick pull request from the community, right?

khellang avatar Jun 26 '18 14:06 khellang

Might not be as simple as you think. To do this, https://github.com/aspnet/BasicMiddleware/issues/216 also needs to be implemented.

RehanSaeed avatar Jun 26 '18 15:06 RehanSaeed

To make it useful that is...

Tratcher avatar Jun 26 '18 15:06 Tratcher

Also the fact that System.IO.Compression.Brotli (unless I've missed something) is .NET Core only, might be a challenge (different functionality between platforms).

tpeczek avatar Jun 26 '18 15:06 tpeczek

Thanks folks for getting this into the 2.2 milestone!

joshfree avatar Jul 10 '18 22:07 joshfree