Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
azzlack committed Aug 28, 2014
1 parent 90185cb commit c665cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Thats it! You should now immediately start experiencing smaller payloads when do
By default, both `ServerCompressionHandler` and `ClientCompressionHandler` compress everything.
However, this can be overriden by inserting a threshold as the first parameter like this:
```csharp
var serverCompressionHandler = new ServerCompressionHandler(4096, new HttpClientHandler(), new GZipCompressor(), new DeflateCompressor());
var clientCompressionHandler = new ClientCompressionHandler(4096, new HttpClientHandler(), new GZipCompressor(), new DeflateCompressor());
var serverCompressionHandler = new ServerCompressionHandler(4096, new GZipCompressor(), new DeflateCompressor());
var clientCompressionHandler = new ClientCompressionHandler(4096, new GZipCompressor(), new DeflateCompressor());
```
The above code will skip compression for any request/response that is smaller than `4096 bytes` / `4 kB`.

## Version history
#### 1.1.1 (current)
#### 1.1.2 (current)
* Changed default threshold for compression to 860 bytes (what Akamai uses)
* Now reports proper Content-Length

Expand Down

0 comments on commit c665cee

Please sign in to comment.