From 0c833af72f678d74ac3c062ab9174affc5308988 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 10 Jan 2021 18:49:52 +0100 Subject: [PATCH] Fix font caching in docker image --- nginx.conf | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/nginx.conf b/nginx.conf index 64e3e6435..2a7f59ab5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,12 +38,19 @@ http { # Expires map map $sent_http_content_type $expires { - default off; - text/html max; - text/css max; - application/javascript max; - ~image/ max; - ~font/ max; + default off; + text/html max; + text/css max; + application/javascript max; + text/javascript 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 {