mox/testdata/webserver/static/index.html
Mechiel Lukkien 9e248860ee
implement transparent gzip compression in the webserver
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).
2023-08-21 21:52:35 +02:00

19 lines
1 KiB
HTML

html
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.
when larger than 1kb, it will be transparently compressed.