diff --git a/roles/nginx/templates/ansible_conf.d/09-cacheable.conf.j2 b/roles/nginx/templates/ansible_conf.d/09-cacheable.conf.j2 index 9de412d..6e31474 100644 --- a/roles/nginx/templates/ansible_conf.d/09-cacheable.conf.j2 +++ b/roles/nginx/templates/ansible_conf.d/09-cacheable.conf.j2 @@ -10,6 +10,7 @@ map $sent_http_content_type $is_client_cacheable { application/font-sfnt 1; font/ttf 1; font/opentype 1; + font/woff2 1; application/font-woff 1; application/vnd.ms-fontobject 1; application/vnd.ms-opentype 1; @@ -20,6 +21,6 @@ map $request_uri $is_proxy_cacheable { ~*\.(png|jpe?g|bmp|gif|webp)$ 1; ~*\.(js|css|txt)$ 1; ~*\.(pdf)$ 1; - ~*\.(ttf|ott)$ 1; + ~*\.(ttf|ott|woff2)$ 1; ~*\.(mp3|mp4|avi|mpe?g|mov|flv)$ 1; }