Skip to content

Commit

Permalink
Update content/techniques/compression.md
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Tripodi <[email protected]>
  • Loading branch information
eugleenyc and Tony133 authored Oct 21, 2023
1 parent 126705d commit 723a6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/compression.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { constants } from 'zlib';
await app.register(compression, { brotliOptions: { params: { [constants.BROTLI_PARAM_QUALITY]: 4 } } });
```

To simplify, you may want to tell fastify-compress to only use deflate and gzip to compress responses; you'll end up with potentially larger responses but they'll be delivered much more quickly.
To simplify, you may want to tell `fastify-compress` to only use deflate and gzip to compress responses; you'll end up with potentially larger responses but they'll be delivered much more quickly.

To specify encodings, provide a second argument to `app.register`:

Expand Down

0 comments on commit 723a6fd

Please sign in to comment.