mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Enable gzip for ttf/otf fonts (#30867)
This commit is contained in:
@@ -38,6 +38,12 @@ geo $bypass_cache {
|
||||
::1 1;
|
||||
}
|
||||
|
||||
types {
|
||||
include /etc/nginx/mime.types;
|
||||
font/ttf ttf;
|
||||
font/otf otf;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
access_log /var/log/nginx/access.log log_discourse;
|
||||
@@ -47,7 +53,7 @@ server {
|
||||
gzip_vary on;
|
||||
gzip_min_length 1000;
|
||||
gzip_comp_level 5;
|
||||
gzip_types application/json text/css text/javascript application/x-javascript application/javascript image/svg+xml application/wasm;
|
||||
gzip_types application/json text/css text/javascript application/x-javascript application/javascript image/svg+xml application/wasm font/ttf font/otf;
|
||||
gzip_proxied any;
|
||||
|
||||
# Uncomment and configure this section for HTTPS support
|
||||
|
||||
Reference in New Issue
Block a user