gzip fixes.

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

View File

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