Skip to content

Commit

Permalink
Allow zstd support
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 22, 2024
1 parent 08ee033 commit f1615de
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ const gz = {
name: 'gzip',
extension: 'gz'
};
const zstd = {
name: 'zstd',
extension: 'zst'
};

module.exports = {
'.html': {
type: 'text/html; charset=utf-8',
encodings: [br, gz]
encodings: [br, zstd, gz]
},
'.js': {
type: 'text/javascript; charset=utf-8',
encodings: [br, gz]
encodings: [br, zstd, gz]
},
'.txt': {
type: 'text/plain'
Expand All @@ -28,7 +32,7 @@ module.exports = {
},
'.svg': {
type: 'image/svg+xml',
encodings: [br, gz]
encodings: [br, zstd, gz]
},
'.png': {
type: 'image/png'
Expand Down Expand Up @@ -56,11 +60,11 @@ module.exports = {
},
'.ttf': {
type: 'font/ttf',
encodings: [br, gz]
encodings: [br, zstd, gz]
},
'.otf': {
type: 'font/otf',
encodings: [br, gz]
encodings: [br, zstd, gz]
},
'.woff': {
type: 'font/woff'
Expand Down

0 comments on commit f1615de

Please sign in to comment.