Skip to content

Commit 4477680

Browse files
authored
Update text (dotnet#16661)
1 parent 23c763f commit 4477680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/performance/response-compression.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about response compression and how to use Response Compressio
55
monikerRange: '>= aspnetcore-2.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 12/05/2019
8+
ms.date: 01/22/2020
99
uid: performance/response-compression
1010
---
1111
# Response compression in ASP.NET Core
@@ -133,7 +133,7 @@ public class Startup
133133

134134
Notes:
135135

136-
* `app.UseResponseCompression` must be called before `app.UseMvc`.
136+
* `app.UseResponseCompression` must be called before any middleware that compresses responses. For more information, see <xref:fundamentals/middleware/index#middleware-order>.
137137
* Use a tool such as [Fiddler](https://www.telerik.com/fiddler), [Firebug](https://getfirebug.com/), or [Postman](https://www.getpostman.com/) to set the `Accept-Encoding` request header and study the response headers, size, and body.
138138

139139
Submit a request to the sample app without the `Accept-Encoding` header and observe that the response is uncompressed. The `Content-Encoding` and `Vary` headers aren't present on the response.

0 commit comments

Comments
 (0)