about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/app.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index e6f82a3..6e714f9 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -160,10 +160,12 @@ export const server = {
           },
         });
       }
+      const { base, ext } = path.parse(pathname);
       const file = files.get(pathname);
       let contentEncoding = "identity";
       let suffix = "";
       if (
+        ![".br", ".zst", ".gz"].includes(ext || base) &&
         !pathname.startsWith("/404.html") &&
         file &&
         (await file.handle.exists())