Skip to content

Commit f1615de

Browse files
committed
Allow zstd support
1 parent 08ee033 commit f1615de

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/types.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ const gz = {
66
name: 'gzip',
77
extension: 'gz'
88
};
9+
const zstd = {
10+
name: 'zstd',
11+
extension: 'zst'
12+
};
913

1014
module.exports = {
1115
'.html': {
1216
type: 'text/html; charset=utf-8',
13-
encodings: [br, gz]
17+
encodings: [br, zstd, gz]
1418
},
1519
'.js': {
1620
type: 'text/javascript; charset=utf-8',
17-
encodings: [br, gz]
21+
encodings: [br, zstd, gz]
1822
},
1923
'.txt': {
2024
type: 'text/plain'
@@ -28,7 +32,7 @@ module.exports = {
2832
},
2933
'.svg': {
3034
type: 'image/svg+xml',
31-
encodings: [br, gz]
35+
encodings: [br, zstd, gz]
3236
},
3337
'.png': {
3438
type: 'image/png'
@@ -56,11 +60,11 @@ module.exports = {
5660
},
5761
'.ttf': {
5862
type: 'font/ttf',
59-
encodings: [br, gz]
63+
encodings: [br, zstd, gz]
6064
},
6165
'.otf': {
6266
type: 'font/otf',
63-
encodings: [br, gz]
67+
encodings: [br, zstd, gz]
6468
},
6569
'.woff': {
6670
type: 'font/woff'

0 commit comments

Comments
 (0)