From 61ed03a23e34be181bd5b9c4474607dcdb566956 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Thu, 19 Mar 2026 17:57:35 -0700 Subject: [PATCH 1/3] Compress TSV exports --- server/embedded/src/org/labkey/embedded/LabKeyServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/embedded/src/org/labkey/embedded/LabKeyServer.java b/server/embedded/src/org/labkey/embedded/LabKeyServer.java index 2dd374fc77..a2573aec27 100644 --- a/server/embedded/src/org/labkey/embedded/LabKeyServer.java +++ b/server/embedded/src/org/labkey/embedded/LabKeyServer.java @@ -130,6 +130,9 @@ public static void main(String[] args) // Enable HTTP compression for response content put("server.compression.enabled", "true"); + // Spring Boot compresses HTML, JSON and other types by default, but not TSV. We have to duplicate the + // defaults and add text/tab-separated-values + 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"); put("server.tomcat.accesslog.enabled", "true"); 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"); From c5e607779931f8e5a752570e6b2f0d57ad05d961 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Tue, 24 Mar 2026 17:58:15 -0700 Subject: [PATCH 2/3] Add other text types --- server/embedded/src/org/labkey/embedded/LabKeyServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/embedded/src/org/labkey/embedded/LabKeyServer.java b/server/embedded/src/org/labkey/embedded/LabKeyServer.java index a2573aec27..0b6a5ac7a1 100644 --- a/server/embedded/src/org/labkey/embedded/LabKeyServer.java +++ b/server/embedded/src/org/labkey/embedded/LabKeyServer.java @@ -130,9 +130,9 @@ public static void main(String[] args) // Enable HTTP compression for response content put("server.compression.enabled", "true"); - // Spring Boot compresses HTML, JSON and other types by default, but not TSV. We have to duplicate the - // defaults and add text/tab-separated-values - 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"); + // Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, or SVG. We have to + // duplicate the defaults and add those types + 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"); put("server.tomcat.accesslog.enabled", "true"); 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"); From 35b2c2fd0179e743638c8469ce9b566d2eaf2055 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Tue, 24 Mar 2026 17:59:53 -0700 Subject: [PATCH 3/3] Add TTF to compression list --- server/embedded/src/org/labkey/embedded/LabKeyServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/embedded/src/org/labkey/embedded/LabKeyServer.java b/server/embedded/src/org/labkey/embedded/LabKeyServer.java index 0b6a5ac7a1..53c89cb544 100644 --- a/server/embedded/src/org/labkey/embedded/LabKeyServer.java +++ b/server/embedded/src/org/labkey/embedded/LabKeyServer.java @@ -130,9 +130,9 @@ public static void main(String[] args) // Enable HTTP compression for response content put("server.compression.enabled", "true"); - // Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, or SVG. We have to - // duplicate the defaults and add those types - 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"); + // Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, SVG, or TTF fonts. + // We have to duplicate the defaults and add those types + 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"); put("server.tomcat.accesslog.enabled", "true"); 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");