Skip to content
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
@speige

Description

@speige

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3 - Donebugcost: XSWill take about half a day to complete

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions