mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
9e248860ee
we only compress if applicable (content-type indicates likely compressible), client supports it, response doesn't already have a content-encoding). for internal handlers, we always enable compression. for reverse proxied and static files, compression must be enabled per handler. for internal & reverse proxy handlers, we do streaming compression at "bestspeed" quality (probably level 1). for static files, we have a cache based on mtime with fixed max size, where we evict based on least recently used. we compress with the default level (more cpu, better ratio). |
||
---|---|---|
.. | ||
atime.go | ||
atime_bsd.go | ||
autoconf.go | ||
autoconf_test.go | ||
gzcache.go | ||
mtasts.go | ||
mtasts_test.go | ||
web.go | ||
web_test.go | ||
webserver.go | ||
webserver_test.go |