Skip to content

Conversation

@fukamachi
Copy link
Owner

Lack Middleware Deflater is for compressing response body. It currently supports only gzip.

Usage

(builder
  ;; Compress JS and CSS files
  (:deflater :content-type '("application/javascript" "text/css"))
  (:static
   :path (lambda (path)
           (if (ppcre:scan "^(?:/assets/|robot\\.txt$|/favicon\\.ico$)" path)
               path
               nil))
   :root (asdf:system-relative-pathname :mysystem #P"public/"))
  app)

@fukamachi fukamachi merged commit d609e93 into master Jul 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants