aspnet / BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
169 stars 84 forks source link

Add Vary: Accept-Encoding if response was compressed #199

Closed JunTaoLuo closed 7 years ago

JunTaoLuo commented 7 years ago

Fixes #187

JunTaoLuo commented 7 years ago

Tested with the response caching middleware and filed a bug https://github.com/aspnet/ResponseCaching/issues/92. Currently if the response is compressed before being cached, the expected behaviour where the response is cached per accept encoding is observed. If the compression comes after caching, however, the response is still cached per accept encoding. This issue will be fixed in the response caching middleware.