Fix font caching in docker image
This commit is contained in:
parent
d384c048ed
commit
0c833af72f
1 changed files with 13 additions and 6 deletions
19
nginx.conf
19
nginx.conf
|
@ -38,12 +38,19 @@ http {
|
||||||
|
|
||||||
# Expires map
|
# Expires map
|
||||||
map $sent_http_content_type $expires {
|
map $sent_http_content_type $expires {
|
||||||
default off;
|
default off;
|
||||||
text/html max;
|
text/html max;
|
||||||
text/css max;
|
text/css max;
|
||||||
application/javascript max;
|
application/javascript max;
|
||||||
~image/ max;
|
text/javascript max;
|
||||||
~font/ max;
|
application/vnd.ms-fontobject max;
|
||||||
|
application/x-font-ttf max;
|
||||||
|
font/opentype max;
|
||||||
|
font/woff2 max;
|
||||||
|
image/svg+xml max;
|
||||||
|
image/x-icon max;
|
||||||
|
~image/ max;
|
||||||
|
~font/ max;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Reference in a new issue