File tree 4 files changed +19
-18
lines changed
4 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 55
55
56
56
# Web fonts
57
57
58
- AddType application/ font- woff woff
59
- AddType application/ font- woff2 woff2
58
+ AddType font/ woff woff
59
+ AddType font/ woff2 woff2
60
60
AddType application/vnd.ms-fontobject eot
61
-
62
- # Browsers usually ignore the font media types and simply sniff
63
- # the bytes to figure out the font type.
64
- # https://mimesniff.spec.whatwg.org/#matching-a-font-type-pattern
65
- #
66
- # However, Blink and WebKit based browsers will show a warning
67
- # in the console if the following font types are served with any
68
- # other media types.
69
-
70
- AddType application/x-font-ttf ttc ttf
71
- AddType font/opentype otf
61
+ AddType font/ttf ttf
62
+ AddType font/collection ttc
63
+ AddType font/otf otf
72
64
73
65
74
66
# Other
Original file line number Diff line number Diff line change 41
41
"application/x-web-app-manifest+json" \
42
42
"application/xhtml+xml" \
43
43
"application/xml" \
44
+ "font/collection" \
44
45
"font/eot" \
45
46
"font/opentype" \
47
+ "font/otf" \
48
+ "font/ttf" \
46
49
"image/bmp" \
47
50
"image/svg+xml" \
48
51
"image/vnd.microsoft.icon" \
Original file line number Diff line number Diff line change 79
79
80
80
# Web fonts
81
81
82
+ # Collection
83
+ ExpiresByType font/collection "access plus 1 month"
84
+
82
85
# Embedded OpenType (EOT)
83
86
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
84
87
ExpiresByType font/eot "access plus 1 month"
85
88
86
89
# OpenType
87
90
ExpiresByType font/opentype "access plus 1 month"
91
+ ExpiresByType font/otf "access plus 1 month"
88
92
89
93
# TrueType
90
94
ExpiresByType application/x-font-ttf "access plus 1 month"
95
+ ExpiresByType font/ttf "access plus 1 month"
91
96
92
97
# Web Open Font Format (WOFF) 1.0
93
98
ExpiresByType application/font-woff "access plus 1 month"
96
101
97
102
# Web Open Font Format (WOFF) 2.0
98
103
ExpiresByType application/font-woff2 "access plus 1 month"
104
+ ExpiresByType font/woff2 "access plus 1 month"
99
105
100
106
101
107
# Other
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ exports = module.exports = {
355
355
'test.otf' : {
356
356
responseHeaders : {
357
357
'access-control-allow-origin' : '*' ,
358
- 'content-type' : 'font/opentype '
358
+ 'content-type' : 'font/otf '
359
359
}
360
360
} ,
361
361
@@ -436,14 +436,14 @@ exports = module.exports = {
436
436
'test.ttc' : {
437
437
responseHeaders : {
438
438
'access-control-allow-origin' : '*' ,
439
- 'content-type' : 'application/x- font-ttf '
439
+ 'content-type' : 'font/collection '
440
440
}
441
441
} ,
442
442
443
443
'test.ttf' : {
444
444
responseHeaders : {
445
445
'access-control-allow-origin' : '*' ,
446
- 'content-type' : 'application/x- font- ttf'
446
+ 'content-type' : 'font/ ttf'
447
447
}
448
448
} ,
449
449
@@ -508,15 +508,15 @@ exports = module.exports = {
508
508
responseHeaders : {
509
509
'access-control-allow-origin' : '*' ,
510
510
'content-encoding' : null ,
511
- 'content-type' : 'application/ font- woff'
511
+ 'content-type' : 'font/ woff'
512
512
}
513
513
} ,
514
514
515
515
'test.woff2' : {
516
516
responseHeaders : {
517
517
'access-control-allow-origin' : '*' ,
518
518
'content-encoding' : null ,
519
- 'content-type' : 'application/ font- woff2'
519
+ 'content-type' : 'font/ woff2'
520
520
}
521
521
} ,
522
522
You can’t perform that action at this time.
0 commit comments