Skip to content

Commit

Permalink
Chore: Add more media mimetypes
Browse files Browse the repository at this point in the history
Add some mimetypes for images/audio/video.
  • Loading branch information
Seirdy committed Dec 12, 2020
1 parent a0387e5 commit c0cc65a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/hint-http-cache/src/hint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ export default class HttpCacheHint implements IHint {
'application/manifest+json',

'audio/ogg',
'audio/opus',
'audio/mpeg',
'audio/mp4',
'audio/x-flac',
'audio/x-wav',

'font/collection',
'application/vnd.ms-fontobject',
Expand All @@ -79,9 +82,11 @@ export default class HttpCacheHint implements IHint {
'font/woff',
'font/woff2',

'image/avif',
'image/bmp',
'image/gif',
'image/jpeg',
'image/jp2',
'image/png',
'image/svg+xml',
'image/webp',
Expand All @@ -92,7 +97,8 @@ export default class HttpCacheHint implements IHint {

'video/mp4',
'video/ogg',
'video/webm'];
'video/webm',
'video/x-matroska'];
/** The predefined patterns for file revving.*/
const predefinedRevvingPatterns: RegExp[] = [
/*
Expand Down

0 comments on commit c0cc65a

Please sign in to comment.