This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
Response Compression allows re-compressing of already compressed responses #305
Closed
Description
I serve pre-compressed static files via a custom middleware (discussed here dotnet/aspnetcore#1584)
If I add app.UseResponseCompression(); in Startup.cs Configure method the response will be compressed 2x.
This can obviously be avoided by re-ordering the middleware, but it seems like ResponseCompressionProvider should double-check the Response headers to see if the Content-Encoding value indicates that it's already compresed.