You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/index.fsx
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
Owin.Compression
15
15
======================
16
16
17
-
Owin.Compression (Deflate / GZip) module ("middleware") for Microsoft OWIN pipeline. Can be used with .NET Full, .NET Core, .NET Standard, .NET6.0, and so on. Works with Selfhost and AspNetCore (e.g. with Kestrel, which is OWIN based server).
17
+
Owin.Compression (Deflate / GZip) module ("middleware") for the Microsoft OWIN pipeline. It can be used with .NET Full, .NET Core, .NET Standard, .NET6.0, and so on. It also works with Selfhost and AspNetCore (e.g. with Kestrel, which is OWIN based server).
18
18
It compresses the web request responses to make the transfer smaller, and it supports eTag caching.
19
19
20
20
<div class="row">
@@ -28,14 +28,14 @@ It compresses the web request responses to make the transfer smaller, and it sup
28
28
<div class="span1"></div>
29
29
</div>
30
30
31
-
Default compression used is deflate, then gzip, as deflate should be faster.
31
+
The default compression used is deflate, then gzip, as deflate should be faster.
32
32
33
33
eTag-caching
34
34
----------
35
35
36
36
1. When the server reads the content before compression, it calculates a hash-code over it.
37
37
2. The hash-code is sent as ETag response header to the client with the response
38
-
3. The next time the client asks the same resource, it sends an If-None-Match header in the request with the same value.
38
+
3. The next time the client asks for the same resource, it sends an If-None-Match header in the request with the same value.
39
39
4. After the server reads the content before the compression, it calculates a hash-code over it. If it matches the If-None-Match of the request, the server can skip the compression and skip the sending and just send http status code 304 to the client which means "use what you have, it's not modified since".
40
40
41
41
@@ -79,7 +79,7 @@ And now your files are smaller than with e.g. just Microsoft.Owin.StaticFiles -l
0 commit comments