Skip to content

Commit 35b2c2f

Browse files
Add TTF to compression list
1 parent c5e6077 commit 35b2c2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/embedded/src/org/labkey/embedded/LabKeyServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ public static void main(String[] args)
130130

131131
// Enable HTTP compression for response content
132132
put("server.compression.enabled", "true");
133-
// Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, or SVG. We have to
134-
// duplicate the defaults and add those types
135-
put("server.compression.mime-types", "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml,text/tab-separated-values,text/csv,image/svg+xml");
133+
// Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, SVG, or TTF fonts.
134+
// We have to duplicate the defaults and add those types
135+
put("server.compression.mime-types", "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml,text/tab-separated-values,text/csv,image/svg+xml,font/ttf");
136136

137137
put("server.tomcat.accesslog.enabled", "true");
138138
put("server.tomcat.accesslog.pattern", "%h %l %u %t \"%r\" %s %b %D %S %I \"%{Referer}i\" \"%{User-Agent}i\" %{LABKEY.username}s %{X-Forwarded-For}i");

0 commit comments

Comments
 (0)