gzip fixes.

This commit is contained in:
2024-10-22 00:12:55 -07:00
parent e99b9d1dce
commit e3fe08ce9f

View File

@@ -35,9 +35,11 @@
(defn gzip-handler [] (defn gzip-handler []
(GzipHandler.) (let [gz (GzipHandler.)]
#_(doto (GzipHandler.) (doto gz
(.setIncludedMethods (into-array ["GET" "POST" "PUT" "DELETE" "PATCH"]))
(.setIncludedMimeTypes (into-array ["text/css" (.setIncludedMimeTypes (into-array ["text/css"
"text/*"
"text/plain" "text/plain"
"text/javascript" "text/javascript"
"text/csv" "text/csv"
@@ -48,7 +50,8 @@
"application/edn" "application/edn"
"application/json" "application/json"
"image/svg+xml"])) "image/svg+xml"]))
(.setMinGzipSize 1024))) (.setMinGzipSize 1024))
gz))
(defn configure-jetty [server] (defn configure-jetty [server]
(let [stats-handler (StatisticsHandler.) (let [stats-handler (StatisticsHandler.)