From c715c2cbcc12f5dfe6f4dfc9f4475b2febe07d5d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Devenyi" Date: Tue, 10 Nov 2026 09:21:45 -0500 Subject: [PATCH] perf: compress api responses in the bundled Caddy The api does not compress its responses. The default match list of encode omits application/x-msgpack, the type of the instrument records list. Mitigates #1714. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01W53iUShuoPRdGy8vrks2nm --- Caddyfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Caddyfile b/Caddyfile index 4a2648013..173590d6d 100644 --- a/Caddyfile +++ b/Caddyfile @@ -8,6 +8,16 @@ } handle_path /api/* { + # The api does not compress its responses. A match is given because the default list of encode + # omits application/x-msgpack, the type of the largest response (the instrument records list). + encode { + zstd + gzip + match { + header Content-Type application/json* + header Content-Type application/x-msgpack* + } + } reverse_proxy api }