Skip to content

Commit e0fc351

Browse files
Update content/techniques/compression.md
Co-Authored-By: John Biundo <[email protected]>
1 parent 0ffaf05 commit e0fc351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import * as compression from 'fastify-compress';
3838
app.register(compression);
3939
```
4040

41-
By default, `fastify-compress` will compress Brotli payloads on the fly on Node >= 11.7.0 when browsers indicate support for the encoding. While Brotli is quite efficient in terms of compression ratio, it's also quite slow, and the slowness becomes obvious when e.g. serving responses from Nest's cache. Due to this, you may want to tell `fastify-compress` to only use deflate and gzip to compress responses; you'll end up with larger responses but they'll be delivered much more quickly.
41+
By default, fastify-compress will use Brotli compression (on Node >= 11.7.0) when browsers indicate support for the encoding. While Brotli is quite efficient in terms of compression ratio, it's also quite slow. Due to this, you may want to tell fastify-compress to only use deflate and gzip to compress responses; you'll end up with larger responses but they'll be delivered much more quickly.
4242

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

0 commit comments

Comments
 (0)