gzip fixes.
This commit is contained in:
@@ -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.)
|
||||||
|
|||||||
Reference in New Issue
Block a user